Template:UTC2DniDate: Difference between revisions
From Guild of Archivists
(Created page with "<includeonly>{{#invoke:D'ni Time|surface2dni}}</includeonly><noinclude>Category: D'ni Time templates {{documentation}} </noinclude>") |
m (BladeLakem moved page Template:SurfaceDate2DniDate to Template:UTC2DniDate: thought of better name) |
Latest revision as of 04:14, 18 August 2020
This template takes a UTC time and returns the equivalent D'ni date.
Parameters[edit source]
- datetime - the datetime parameter takes a string of the date you want to convert. If this parameter is included, any parameters that indicate specific parts of the time (year, month, day, etc.) will be ignored.
- input - if a datetime parameter is included, the input parameter is an input mask for parsing the datetime string. If no input parameter is included, the template will attempt to figure out the datetime string.
- format - this parameter provides an output format for the D'ni time string
Parts of time[edit source]
If no datetime string is provided, individual parts of the time can be entered. Only year is mandatory. If the others are omitted, a default value will be used.
- year - Mandatory, four-digit year. BC/BCE years are indicated by putting in a negative year
- month - the number of the month (starting at 1). Default = 1 (January)
- day - day of the month. Default = 1
- hour - hour of the day, 24-hour style. Default = 00
- minute - minute of the hour. Default = 00
- second - second of the minute. Default = 00
Examples[edit source]
- {{UTC2DniDate|year=2020}} -> 9675 DE Leevobro 29 0:10:9:11
- {{UTC2DniDate|year=1974|month=5|day=2|hour=11|minute=20|second=00}} -> 9630 DE Leefo 9 3:5:8:13
- {{UTC2DniDate|year=-1974|month=5|day=2|hour=11|minute=20|second=00}} -> 5682 DE Leefo 8 4:22:14:2
- {{UTC2DniDate|datetime=1974-05-02 11:20:00}} -> 9630 DE Leefo 9 3:5:8:13
- {{UTC2DniDate|datetime=05/02/1974 11:20:00|input=m/d/yyyy HH:MM:SS}} -> 9630 DE Leefo 9 3:5:8:13
- {{UTC2DniDate|datetime=1974-05-02 11:20:00|format=HHHH.VV.YY gg.tt.rr.pp}} -> 9630.01.09 3.5.8.13
- {{UTC2DniDate|datetime=1974-05-02 11:20:00|format=[[HHHH XX]] VVVV yy gg.tt.rr.pp}} -> 9630 DE Leefo 9 3.5.8.13
The above documentation is transcluded from Template:UTC2DniDate/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |