Starboard Module Reference: time_zone.h
Stay organized with collections
Save and categorize content based on your preferences.
Provides access to the system time zone information.
Typedefs
SbTimeZone
The number of minutes west of the Greenwich Prime Meridian, NOT including
Daylight Savings Time adjustments.
For example: America/Los_Angeles is 480 minutes (28800 seconds, 8 hours).
Definition
typedef int SbTimeZone
Functions
SbTimeZoneGetCurrent
Gets the system's current SbTimeZone in minutes.
Declaration
SbTimeZone SbTimeZoneGetCurrent()
SbTimeZoneGetName
Gets a string representation of the current timezone. The format should be in
the IANA format https://data.iana.org/time-zones/theory.html#naming) .
Names normally have the form AREA/LOCATION, where AREA is a continent or ocean,
and LOCATION is a specific location within the area. Typical names are
'Africa/Cairo', 'America/New_York', and 'Pacific/Honolulu'.
Declaration
const char* SbTimeZoneGetName()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-19 UTC."],[[["\u003cp\u003eThe system's time zone information is accessible, providing the number of minutes west of the Greenwich Prime Meridian without Daylight Savings Time adjustments.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSbTimeZone\u003c/code\u003e is a typedef for an integer representing the time zone offset in minutes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSbTimeZoneGetCurrent\u003c/code\u003e function retrieves the current system time zone offset in minutes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSbTimeZoneGetName\u003c/code\u003e function retrieves a string representation of the current time zone in IANA format, such as 'America/New_York'.\u003c/p\u003e\n"]]],["The `SbTimeZone` type represents the number of minutes west of the Greenwich Prime Meridian, excluding Daylight Savings Time. `SbTimeZoneGetCurrent` function retrieves the system's current timezone in minutes. `SbTimeZoneGetName` returns a string representing the current timezone in IANA format (AREA/LOCATION), like 'America/New_York', detailing a specific location within a continent or ocean. It does not provide information about Daylight Savings Time.\n"],null,["# Starboard Module Reference: time_zone.h\n\nProvides access to the system time zone information.\n\nTypedefs\n--------\n\n### SbTimeZone\n\nThe number of minutes west of the Greenwich Prime Meridian, NOT including\nDaylight Savings Time adjustments.\n\nFor example: America/Los_Angeles is 480 minutes (28800 seconds, 8 hours).\n\n#### Definition\n\n typedef int SbTimeZone\n\nFunctions\n---------\n\n### SbTimeZoneGetCurrent\n\nGets the system's current SbTimeZone in minutes.\n\n#### Declaration\n\n SbTimeZone SbTimeZoneGetCurrent()\n\n### SbTimeZoneGetName\n\nGets a string representation of the current timezone. The format should be in\nthe IANA format \u003chttps://data.iana.org/time-zones/theory.html#naming\u003e) .\nNames normally have the form AREA/LOCATION, where AREA is a continent or ocean,\nand LOCATION is a specific location within the area. Typical names are\n'Africa/Cairo', 'America/New_York', and 'Pacific/Honolulu'.\n\n#### Declaration\n\n const char* SbTimeZoneGetName()"]]