Difference between revisions of "Template:Daylight saving offset"
Jump to navigation
Jump to search
imported>BrandonXLF |
imported>BrandonXLF |
||
| Line 1: | Line 1: | ||
| − | {{ifeq | + | {{#ifeq:{{#invoke:time|time|{{{1|EST}}}|dst=no}}|{{#invoke:time|time|{{{1|EST}}}|dst=yes}}|0|1}}<noinclude> |
{{doc}}[[Category:Current daylight-saving offset templates|!]] | {{doc}}[[Category:Current daylight-saving offset templates|!]] | ||
</noinclude> | </noinclude> | ||
Revision as of 03:12, 18 August 2018
0
Contents
Usage
| This template uses Lua: |
This template uses Module:time to calculate the output. So most timezones should work. If a timezone doesn't work it needs to be added at Module:time.
Parameters
This template takes one unnamed parameter (or |1=) This parameter is the timezone abbrev. of the standard time of the timezone (eg. EST and not EDT)
Notes
When DST is active it produces 0
When DST isn't active it produces 1
Examples
- 0 (MST)
- 1 (NZST)
- 0 (IST)
- 0 (CET)
Template:Time related templates
| The above documentation is transcluded from Template:Daylight saving offset/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |