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

fuchsia.deprecatedtimezone

PROTOCOLS

Timezone

Defined in fuchsia.deprecatedtimezone/deprecated_time_zone.fidl

GetTimezoneId

Gets the timezone ID string.

Request

NameType

Response

NameType
timezone_id string

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.

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.

Request

NameType
timezone_id string

Response

NameType
status bool

Watch

Watches for updates to the timezone ID.

Request

NameType
watcher TimezoneWatcher

TimezoneWatcher

Defined in fuchsia.deprecatedtimezone/deprecated_time_zone.fidl

OnTimezoneOffsetChange

When the timezone changes, returns the new timezone ID.

Request

NameType
timezone_id string

STRUCTS