Template:UTC2DniDate

From Guild of Archivists


Template documentation[view] [edit] [history] [purge]

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