Template:Utctest

From Discworld MUD Wiki
Jump to: navigation, search

Pieces for testing, remove text when done.

references here:
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time
http://www.timeanddate.com/worldclock/converter.html?iso=20200126T000000&p1=tz_gmt&p2=tz_cet&p3=tz_et&p4=tz_pst

Wed, 11 May 2022 19:38:09 +0000

curr yr: 2022

curr mo: 05

curr day: 11

curr hr: 19

curr min: 38

curr timestamp: 20220511193809

local timestamp: 20220511153809

time parser: 20220511193809

time parser: 20200126111500

Use these two above? if
{{utctest}}
is used, return result of
{{#time: YmdHis | now}}
, if
{{utctest| 1 jan 2020
 20:15}}
is used, then conditionally send that to parser?

Also, can we make a wrapper template that parses the time stamp from the parser and makes url for timeanddate web?

[http://www.timeanddate.com/worldclock/fixedtime.html?hour=
{{{hour|{{{1|{{CURRENTHOUR}}}}}}}}
&min={{{minute|{{{2|0}}}}}}
&sec={{{second|0}}}{{#if:{{{day|}}}|
&day={{{day}}}
&month={{{month}}}
&year={{{year}}}}} 
{{{hour|{{{1|{{CURRENTHOUR}}}}}}}}:{{{minute|{{{2|00}}}}}} UTC]

[edit]

Documentation