Project

General

Profile

$timezone » History » Version 2

Paul Janson, 12/05/2018 06:32 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$timezone*
4
5 2 Paul Janson
Returns the local timezone setting in seconds. Positive is West/Earlier than UTC, negative is East/Later than UTC.
6
7
Returns your local timezone relative to "UTC":https://en.wikipedia.org/wiki/UTC in seconds, adjusted by $daylight.
8
Positive is west/earlier than UTC zone, negative is east/later than UTC.
9
10
Total of $timezone + $daylight is always the same while your time zone settings are not changed.
11
12
During winter, New York City has $timezone = 18000 $daylight = 0.
13
During summer, these values change to $timezone = 14400 $daylight = 3600
14
15
//echo -a $gmt is the same as $calc($ctime + $timezone) year round (except for low gmt values requiring ctime be negative)
16
17
see also [[$daylight]] [[$asctime]] [[$gmt]] [[$ctime]]