fuchsia.deprecatedtimezone

PROTOCOLS

TimeService

Defined in fuchsia.deprecatedtimezone/deprecated_time_service.fidl

Interface to allow manual updates of the system time.

Update

Requests an immediate update of the time from network.

Request

NameType
num_retries uint8

Response

NameType
successful bool

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.

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

GetTimezoneId

Gets the timezone ID string.

Request

NameType

Response

NameType
timezone_id string

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