Template:Timestamp: Difference between revisions

From PHIGHTING! Wiki
Content added Content deleted
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<span class="ph-timestamp">{{#timel: h:i A {{#ifeq:{{{2|}}}|TZ|T|}} |@{{{1}}}}}</span><noinclude>
<span class="ph-timestamp">{{#timel: h:i A {{#ifeq:{{{2|}}}|TZ|T|}} |@{{{1}}}}}</span><noinclude>
----
== Documentation ==
== Documentation ==
Produces a timestamp from a [https://www.unixtimestamp.com/ Unix timestamp]. Currently, the time will display in the wiki's default timezone, which is EST5EDT. It observes DST.
Produces a timestamp from a [https://www.unixtimestamp.com/ Unix timestamp]. Currently, the time will display in the wiki's default timezone, which is EST5EDT. It observes DST.

This template is primarily used for timestamps in Patch Notes.


To use, simply put a Unix timestamp in as the first parameter:
To use, simply put a Unix timestamp in as the first parameter:

Latest revision as of 08:07, 16 June 2024

Error: Invalid time.

Documentation

Produces a timestamp from a Unix timestamp. Currently, the time will display in the wiki's default timezone, which is EST5EDT. It observes DST.

This template is primarily used for timestamps in Patch Notes.

To use, simply put a Unix timestamp in as the first parameter:

{{Timestamp|1718526480}} - 04:28 AM

To append the timezone, simply add 'TZ' as the second parameter:

{{Timestamp|1718526480|TZ}} - 04:28 AM EDT