Skip to content

GetChronoTimeZone

imshooter edited this page Nov 26, 2026 · 1 revision

The time zone of the server.

native bool:GetChronoTimeZone(output[], size = sizeof (output));

Parameters

Parameter Description
output[] Array for the name of the zone.
size Size of the array.

Returns

  • true when it was written.
  • false when the array has no room.

Remarks

It writes UTC when the machine has no time zones.

Example

stock ShowTimeZone(playerid) {
    new
        zone[40]
    ;

    GetChronoTimeZone(zone);
    SendClientMessage(playerid, -1, "The server keeps time in %s.", zone);
}

Related

Clone this wiki locally