date_get_timezone

Sets the base timezone to use for all the date and time functions.

Syntax:

GML Code Example

date_get_timezone();


Returns: Constant


Description

Gets the base time zone being used for all the rest of the date and time functions. This time zone can either be local (as set by the system) or UTC, and the function will return one of the following constants:

Constant Description
timezone_local use the local time zone as set by the system
timezone_utc use Coordinated Universal Time


Example:

GML Code Example

if date_get_timezone() != timezone_utc
    br>    date_set_timezone(timezone_utc);
    }
 

This code checks the base time zone setting for the game and if it is not UTC it then changes it.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here