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

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, returing the updated time if successful.

Request

NameType
num_retries uint8

Response

NameType
new_time UpdatedTime?

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

UpdatedTime

Defined in fuchsia.deprecatedtimezone/deprecated_time_service.fidl

The updated time as returned from TimeService::Update.

NameTypeDescriptionDefault
utc_time zx/time No default