Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.7

Description

Description:

Returns the timezone offset from UTC.

If the timezone was not explicitly set by setTimezoneOffset, the UTC offset is computed by default from the longitude coordinate of the map, as if the timezones were evenly distributed.

For example:

  • The longitude coordinate 2° East falls into the UTC+0 timezone.
  • The longitude coordinate 30° West falls into the UTC-2 timezone.

Syntax

Syntax:getTimezoneOffset
Parameters:
Return Value:Number - The timezone offset (in hours) from UTC.

Examples

Examples:
_offset = getTimezoneOffset

Additional Information

See also: setTimezoneOffset, getTimezoneOffsetApplyDST, getDaylightSavingTime
Multiplayer: 
Problems: 

Notes