Difference between revisions of "Template:ETzone"

From Geohashing
imported>Tjtrumpet2323
(New page: <includeonly>{{#ifeq: {{usdst|{{{1}}} 14:00}} | 1 | EDT | EST }}</includeonly><noinclude> == Usage == Returns the time zone identifier for the Eastern Time Zone at 14:00 UTC on the dat...)
 
imported>Tjtrumpet2323
(Adding preferred protocol for linking to ET while still showing "EST" or "EDT" as appropriate)
 
Line 4: Line 4:
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
Returns the time zone identifier for the [[Eastern Time Zone]] at 14:00 UTC on the date passed.
+
Returns the time zone identifier for the [[Eastern Time Zone]] at 14:00 UTC on the date passed.  Defaults to current day.
 
* <code><nowiki>{{ETzone|2008-06-30}}</nowiki></code> returns '''{{ETzone|2008-06-30}}'''.
 
* <code><nowiki>{{ETzone|2008-06-30}}</nowiki></code> returns '''{{ETzone|2008-06-30}}'''.
 
* <code><nowiki>{{ETzone|2008-11-22}}</nowiki></code> returns '''{{ETzone|2008-11-22}}'''.
 
* <code><nowiki>{{ETzone|2008-11-22}}</nowiki></code> returns '''{{ETzone|2008-11-22}}'''.
 +
 +
When linking the time zone identifier, use the following code, passing a date if necessary:
 +
 +
<code><nowiki>[[Eastern Time|{{ETzone}}]]</nowiki></code>
 
</noinclude>
 
</noinclude>

Latest revision as of 04:14, 21 February 2009

Usage

Returns the time zone identifier for the Eastern Time Zone at 14:00 UTC on the date passed. Defaults to current day.

  • {{ETzone|2008-06-30}} returns EDT.
  • {{ETzone|2008-11-22}} returns EST.

When linking the time zone identifier, use the following code, passing a date if necessary:

[[Eastern Time|{{ETzone}}]]