Google is committed to advancing racial equity for Black communities. See how.

fuchsia.deprecatedtimezone

PROTOCOLS

Timezone

Defined in fuchsia.deprecatedtimezone/deprecated_time_zone.fidl

GetTimezoneOffsetMinutes

Returns local timezone offset (in minutes from UTC. Can be negative) for the supplied number of milliseconds since the Unix epoch. Returns a non-zero DST offset when appropriate.

DEPRECATED - use the ICU library to compute the time zone offset

Request

NameType
milliseconds_since_epoch int64

Response

NameType
local_offset_minutes int32
dst_offset_minutes int32

SetTimezone

Sets the timezone for the machine based on an ICU ID.

Do not introduce new uses: SetTimezone today exists only so it can support the one remaining use of GetTimezoneOffsetMinutes. Use

DEPRECATED - use fuchsia.settings.Intl instead

Request

NameType
timezone_id string

Response

NameType
status bool

STRUCTS