Template:CURRENTMINUTE/doc

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

Usage

 * Use {&#123;subst:{&#123;CURRENTMINUTE}}|subst=subst:&#125;} to substitute the current minute.

Formula

 * (( -30 round -2 ) mod 10000 ) div 100
 * {&#123; subst: {&#123;CURRENTMINUTE}} &#125;} copies this code ready for optional substitution into another template. To avoid an obscure intermittent MOD bug for large numbers the template actually uses
 * ( - 10000000000 * 2024 )

Warning

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

Note

 * To retrieve the current hour, use the built-in magic word.