Starboard Module Reference: time_zone.h

Provides access to the system time zone information.

Functions

SbTimeZoneGetCurrent

Description

Gets the system's current SbTimeZone in minutes.

Declaration and definitions

SB_EXPORT SbTimeZone SbTimeZoneGetCurrent();

#include "starboard/time_zone.h"

SbTimeZone SbTimeZoneGetCurrent() {
  return 0;
}

SbTimeZoneGetDstName

Description

Gets the three-letter code of the current timezone in Daylight Savings Time, regardless of current DST status. (e.g. "PDT")

Declaration and definitions

SB_EXPORT const char* SbTimeZoneGetDstName();

#include "starboard/time_zone.h"

const char* SbTimeZoneGetDstName() {
  return "GMT";
}

SbTimeZoneGetName

Description

Gets the three-letter code of the current timezone in standard time, regardless of current Daylight Savings Time status. (e.g. "PST")

Declaration and definitions

SB_EXPORT const char* SbTimeZoneGetName();

#include "starboard/time_zone.h"

const char* SbTimeZoneGetName() {
  return "GMT";
}