Template:Daylight saving offset/sandbox
Jump to navigation
Jump to search
1
| File:Edit In Sandbox Icon - Color.svg | This is the template sandbox page for Template:Daylight saving offset (diff). See also the companion subpage for test cases. |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage
[edit source]| Error creating thumbnail: | 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
[edit source]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
[edit source]When DST is active it produces 0
When DST isn't active it produces 1
Examples
[edit source]- 1 (MST)
- 0 (NZST)
- 0 (IST)
- 1 (CET)
See also
[edit source]Offset related
[edit source]Daylight saving related
[edit source]- {{Daylight saving active}} 1=yes 0=no
- {{Daylight saving offset}} 0=yes 1=no (used for addition)
Time related
[edit source]- {{Time}}
- {{Timeonly}}
- {{Dateonly}}
- {{Current hour in time zone}}
- {{Current minute in time zone}}