Template:Timestamp: Difference between revisions

From PHIGHTING! Wiki
Content added Content deleted
mNo edit summary
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#timel: h:i A |{{{1}}}}}<noinclude>
<span class="ph-timestamp">{{#timel: h:i A {{#ifeq:{{{2|}}}|TZ|T|}} |@{{{1}}}}}</span><noinclude>
== 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.


This template is primarily used for timestamps in Patch Notes.
{{Timestamp|@1718524920}}

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

<code><nowiki>{{Timestamp|1718526480}}</nowiki></code> - {{Timestamp|1718526480}}

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

<code><nowiki>{{Timestamp|1718526480|TZ}}</nowiki></code> - {{Timestamp|1718526480|TZ}}
</noinclude>
</noinclude>

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