Starboard Module Reference: time_zone.h
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
The system's time zone information is accessible, providing the number of minutes west of the Greenwich Prime Meridian without Daylight Savings Time adjustments.
SbTimeZone is a typedef for an integer representing the time zone offset in minutes.
SbTimeZoneGetCurrent function retrieves the current system time zone offset in minutes.
SbTimeZoneGetName function retrieves a string representation of the current time zone in IANA format, such as 'America/New_York'.
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
typedefintSbTimeZone
Functions
SbTimeZoneGetName
Gets a string representation of the current timezone in IANA format. Names typically
follow the AREA/LOCATION format, where AREA is a continent or ocean, and
LOCATION is a specific location within that area (for example, 'Africa/Cairo',
'America/New_York', or 'Pacific/Honolulu').
[[["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 2026-06-30 UTC."],[],["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"]]