Wikia

Memory Alpha

CURRENTMINUTE

Discuss0
37,545pages on
this wiki

Template page

The following documentation is transcluded from Template:CURRENTMINUTE/doc:

This template extracts the current integer minute in two digits (between 00 and 59) from the current UTC time (as set on the Memory Alpha server). The displayed value should match the right hand side of 14:02.

UsageEdit

{{ CURRENTMINUTE }}
Use {{subst:{{CURRENTMINUTE}}|subst=subst:}} to substitute the current minute.

FormulaEdit

{{ padleft: (( {{CURRENTTIMESTAMP}} -30 round -2 ) mod 10000 ) div 100 | 2 | 0 }}
{{ subst: {{CURRENTMINUTE}} }} copies this code ready for optional substitution into another template. To avoid an obscure intermittent MOD bug for large numbers the template actually uses
( {{CURRENTTIMESTAMP}} - 10000000000 * {{CURRENTYEAR}} )

WarningEdit

Pages asking for the current minute often also need other parts of {{CURRENTTIMESTAMP}} = 20141021140203, and different "current" templates and variables can reflect different timestamps near hh:mm:59.

NoteEdit

To retrieve the current hour, use the built-in magic word {{CURRENTHOUR}}.

Around Wikia's network

Random Wiki