Difference between revisions of "Template:CURRENTMINUTE/doc"
Jump to navigation
Jump to search
imported>Mike Dillon m (add initial break to start hr without placing line break in the template) |
(+ja) |
||
| Line 1: | Line 1: | ||
| − | |||
---- | ---- | ||
This template extracts the current integer minute on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server). | This template extracts the current integer minute on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server). | ||
| Line 19: | Line 18: | ||
[[fr:Modèle:CURRENTMINUTE]] | [[fr:Modèle:CURRENTMINUTE]] | ||
| + | [[ja:Template:CURRENTMINUTE]] | ||
[[ru:Шаблон:CURRENTMINUTE]] | [[ru:Шаблон:CURRENTMINUTE]] | ||
[[su:Citakan:CURRENTMINUTE]] | [[su:Citakan:CURRENTMINUTE]] | ||
</includeonly> | </includeonly> | ||
Revision as of 08:46, 11 December 2007
This template extracts the current integer minute on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server). The shown value should match the right hand side of 13:02.
- Syntax:
- {{CURRENTMINUTE}}
- Use {{subst:CURRENTMINUTE|subst=subst:}} to substitute the current minute.
- Formula:
- {{0expr|(( {{CURRENTTIMESTAMP}} -30 round -2 ) mod 10000 ) div 100}}
- {{subst:CURRENTMINUTE}} copies this code ready for optional substitution into another template. To avoid an obscure intermittent MOD bug for big numbers the template acually uses
- ( {{CURRENTTIMESTAMP}} - 10000000000 * {{CURRENTYEAR}} )
- Warning:
- Pages asking for the current minute often also need other parts of
{{CURRENTTIMESTAMP}}= 20251229130207, and different "current" templates and variables can reflect different timestamps near hh:mm:59. - See also:
- Template:CURRENTHOUR