Function: tzdiff

Syntax

tzdiff (<num>)

Type

numeric

Returns

The relative difference in seconds between the loacl time and Co-ordinated Universal Time (UTC), also known as Greenwich Mean Time (GMT) or zulu time.

For example, if the machine has a timezone of US Eastern Time, which is 5 hours behind UTC, then tzdiff will have a value -18000.
However if utc_mode has been set to 1, this value will be 0.

The optional parameter <num> can be used to take daylight saving into account. A value 1 (the default) will take it into account if it is active, a value 0 will ignore it.

Notes

Changing the timezone of the machine after the system has started will not change this value. It retains the value it had at system startup.

See Also

Identifiers:

now (time), utc_mode (numeric)