Clears the gmt_offset
field.
See the Rust documentation for offset_seconds
for more information.
Additional information: 1
Clears the metazone_id
field.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
Clears the time_zone_id
field.
See the Rust documentation for time_zone_id
for more information.
Additional information: 1
Clears the zone_variant
field.
See the Rust documentation for zone_variant
for more information.
Additional information: 1
Returns whether the gmt_offset
field has nonzero minutes.
Returns null if the gmt_offset
field is empty.
See the Rust documentation for has_minutes
for more information.
Returns whether the gmt_offset
field has nonzero seconds.
Returns null if the gmt_offset
field is empty.
See the Rust documentation for has_seconds
for more information.
Returns the value of the gmt_offset
field as offset seconds.
Returns null if the gmt_offset
field is empty.
See the Rust documentation for offset_seconds
for more information.
Additional information: 1
Returns whether the zone_variant
field is daylight time.
Returns null if the zone_variant
field is empty.
See the Rust documentation for daylight
for more information.
Additional information: 1
Returns whether the gmt_offset
field is positive.
Returns null if the gmt_offset
field is empty.
See the Rust documentation for is_positive
for more information.
Returns whether the gmt_offset
field is zero.
Returns null if the gmt_offset
field is empty (which is not the same as zero).
See the Rust documentation for is_zero
for more information.
Returns whether the zone_variant
field is standard time.
Returns null if the zone_variant
field is empty.
See the Rust documentation for standard
for more information.
Additional information: 1
Sets the metazone based on the time zone and the local timestamp.
See the Rust documentation for maybe_calculate_metazone
for more information.
Additional information: 1
Writes the value of the metazone_id
field as a string.
Returns null if the metazone_id
field is empty.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
Sets the zone_variant
field to "daylight" time, which may or may not correspond to a display name with "Daylight" in its name.
See the Rust documentation for daylight
for more information.
Additional information: 1
Sets the zone_variant
field to "standard" time, which may or may not correspond to a display name with "Standard" in its name.
See the Rust documentation for standard
for more information.
Additional information: 1
Writes the value of the time_zone_id
field as a string.
Returns null if the time_zone_id
field is empty.
See the Rust documentation for time_zone_id
for more information.
Additional information: 1
Sets the gmt_offset
field from offset seconds.
Errors if the offset seconds are out of range.
See the Rust documentation for try_from_offset_seconds
for more information.
Additional information: 1
Sets the time_zone_id
field from an IANA string by looking up the corresponding BCP-47 string.
Errors if the string is not a valid BCP-47 time zone ID.
Sets the metazone_id
field from a string.
Returns null if the string is not a valid BCP-47 metazone ID.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
Sets the time_zone_id
field from a BCP-47 string.
Errors if the string is not a valid BCP-47 time zone ID.
See the Rust documentation for time_zone_id
for more information.
Additional information: 1
Sets the zone_variant
field from a string.
Returns null if the string is not a valid zone variant.
See the Rust documentation for zone_variant
for more information.
Additional information: 1
Writes the value of the zone_variant
field as a string.
Returns null if the zone_variant
field is empty.
See the Rust documentation for zone_variant
for more information.
Additional information: 1
Static
create_Creates a time zone for BST (London summer time).
See the Rust documentation for bst
for more information.
Static
create_Creates a time zone with no information.
See the Rust documentation for new_empty
for more information.
Static
create_Creates a time zone from an offset string.
See the Rust documentation for try_from_str
for more information.
Static
create_Creates a time zone for GMT (London winter time).
See the Rust documentation for gmt
for more information.
Static
create_Creates a time zone for UTC (Coordinated Universal Time).
See the Rust documentation for utc
for more information.
See the Rust documentation for
CustomTimeZone
for more information.