Module:Time: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

18 May 2024

  • curprev 08:2108:21, 18 May 2024Hefner 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..."