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



Introduced in

Version:3.7

Description

Description:Sets the timezone offset from UTC. Does not affect the displayed time, but affects the position of celestial objects (for example, the sun).

Syntax

Syntax:setTimezoneOffset value
Parameters:
  • value: Number - Offset in hours. Can be positive or negative, and be a decimal fraction.
Return Value:Nothing

Examples

Examples:
setTimezoneOffset -8 // set the timezone to UTC-8
setTimezoneOffset +5.5 // set the timezone to UTC+5.5

Additional Information

See also: getTimezoneOffset, getTimezoneOffsetApplyDST, setDaylightSavingTime
Multiplayer:
Problems:

Notes