Help:Date and time
From Stargate Worlds Wiki (SGW)
[edit] Date format
The following is rendered depending on preferences:
[[2001-01-15]] (or [[2001]]-[[01-15]]) [[2001]] [[January 15]] [[January 15]], [[2001]] [[15 January]] [[2001]] [[January 15]] [[15 January]]
With your current preference setting on this project the seven are rendered as follows:
By default the rendering is as usual for links, except that in the first case the syntax for a single link gives two links. However, one can specify as preference that all full date formats are rendered the same, in the 1st, 2nd, 3rd, or 4th way. (Note that format [[YYYY-MM-DD]] is the shortest of these five.) If the 1st or 2nd way is selected, the 5th and 6th line are not affected. If the 3rd or 4th way is selected, the 5th and 6th line are rendered accordingly, without the year.
For years in the range 1-1000, in the two cases on the first line the year has to be padded with zeros:
[[0011-01-15]] ([[0011]]-[[01-15]]) [[11]] [[January 15]] [[January 15]], [[11]] [[15 January]] [[11]]
gives:
For years B.C.:
[[-0011-01-15]] ([[-0011]]-[[01-15]]) [[12 BC]] [[January 15]] [[January 15]], [[12 BC]] [[15 January]] [[12 BC]]
gives:
The setting also affects what wikitext the signature of the user produces. Since dates in signatures are not linked, this determines how the date is rendered for everybody, and this can not be changed retroactively, except by editing the pages with the signature.
Note that using this date formatting feature in section headers complicates section linking: a link to a section with a variable date format has to be set in a fixed date format, which works only for users for whom the formats match.
For chronological table sorting the format [[YYYY-MM-DD]] works directly; in other cases date sorting only works if a table has been specially adapted for that purpose. An additional effect of selecting this preference is that Recent Changes, User Contributions, etc., also gives seconds: "HH:mm:SS", or with the date: "YYYY-MM-DDTHH:mm:SS".
apply only when you are logged in.
[edit] Time zone
Offset. This is the number of hours to be added or subtracted from UTC to find your time zone. This time zone is used when calculating displayed page update timestamps, and may become temporarily incorrect from time to time if you observe daylight saving time -- don't forget to update it to match your local time, because the Wiki doesn't know where you are or precisely when you celebrate DST. (Also, the server's clock may be slightly offset from reality, much as Wikipedia articles may be.) A scattering of typical is located at timeanddate.com.
The UTC time is applicable:
- In the signing of Talk pages
- In the Upload log
- In referring to non-localized events, including things that happen on the site.
Keep this in mind when copying an excerpt from Recent Changes, a revision history listing, etc. to a Talk page. Convert manually to UTC or temporarily set the preferences to a zero offset before producing the revision history etc. to be copied.
