Jump to content

Template talk:UTC

Add topic
From Meta, a Wikimedia project coordination wiki

I suggest the date and time be automatically updated when appearing in a page (when reading / loading the wikimedia page).

To appear a concrete date and time in UTC, I suggest use{{UTC:fixed}} ( in a similar way to the time and date in the Wikimedia user´s signature):

2024-06-25 T 04:46 in UTC

Mac.

The first is a matter of caching, the second you can enter as a feature request. We already have ~~~~~ giving 08:51, 12 Aug 2004 (UTC), but this does not allow one's own formatting.--Patrick 08:51, 12 Aug 2004 (UTC)

Iso8601 Compliance[edit]

This template's source should really be {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}T{{CURRENTTIME}}Z to be compliant with Iso8601.

Also, {{CURRENTDAY}}, &c should be of fixed length.

-Joe Llywelyn Griffith Blakesley 03:26, 2004 Dec 5 (UTC)

One could do something like this:
  • source:
    The current [[wikipedia:date|]] and [[wikipedia:time|]] (in [[wikipedia:Iso8601|]] format) is <code>[[wikipedia: {{CURRENTYEAR}}|{{CURRENTYEAR}}]]-[[wikipedia:{{CURRENTMONTHNAME}} {{CURRENTDAY}}|{{CURRENTMONTH}}-{{CURRENTDAY}}]]'''T'''{{CURRENTTIME}}'''[[wikipedia:Coordinated Universal Time|Z]]'''</code><br />In the basic Iso8601 format (NB: time in this is impossible with metawiki), the year is <code>[[wikipedia: {{CURRENTYEAR}}|{{CURRENTYEAR}}]][[wikipedia:{{CURRENTMONTHNAME}} {{CURRENTDAY}}|{{CURRENTMONTH}}{{CURRENTDAY}}]]</code>
  • rendered:
    The current date and time (in Iso8601 format) is 2024-06-25T04:46Z
    In the basic Iso8601 format (NB: time in this is impossible with metawiki), the year is 20240625
--Joe Llywelyn Griffith Blakesley 07:01, 2005 Feb 10 (UTC)

Update from Wikipedia[edit]

Yes, a proper ISO timestamp would be yyyy-mm-ddThh:mmZ, not the gibberish with spaces, italics T, no Z, and verbose "in UTC".

I've simplified it to a human readable format 2024-06-25 04:46 UTC, current code: {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}&#160;{{CURRENTTIME}}<small>&#160;[[w:UTC|UTC]]</small> ({{purge}})<noinclude> == Documentation== {{documentation}} [[Category:Miscellaneous templates|{{PAGENAME}}]] </noinclude>

05:53, 19 March 2006 (UTC) Omniplex

T[edit]

To compliance with the ISO standards it lacks a T between the date and the time. See {{UTC2}}