Module:Time: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

15 October 2024

  • curprev 22:1422:14, 15 October 2024Alex talk contribs 1,757 bytes +1,757 Created page with "-- <pre> local p = {} -- minutes to hh:mm:ss function p.m_to_c(frame) local args = frame:getParent().args local arg = args[1] return p._m_to_c(arg) end function p._m_to_c(arg) arg = arg or '' if arg == '' then return '' end -- look for and parse fractions if arg:find('/') then local n,d = arg:match('(%d+)%s*/%s*(%d+)') n = tonumber(n,10) d = tonumber(d,10) -- only continue if 60 (seconds in a minute) is denom if d == 60 then arg = n/d else..."