ICU4X
International Components for Unicode
|
#include <ICU4XCustomTimeZone.hpp>
Static Public Member Functions | |
static diplomat::result< ICU4XCustomTimeZone, ICU4XError > | create_from_string (const std::string_view s) |
static ICU4XCustomTimeZone | create_empty () |
static ICU4XCustomTimeZone | create_utc () |
See the Rust documentation for CustomTimeZone
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inline |
Clears the gmt_offset
field.
See the Rust documentation for offset_seconds
for more information.
Additional information: 1
|
inline |
Clears the metazone_id
field.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
|
inline |
Clears the time_zone_id
field.
See the Rust documentation for time_zone_id
for more information.
Additional information: 1
|
inline |
Clears the zone_variant
field.
See the Rust documentation for zone_variant
for more information.
Additional information: 1
|
inlinestatic |
Creates a time zone with no information.
See the Rust documentation for new_empty
for more information.
|
inlinestatic |
Creates a time zone from an offset string.
See the Rust documentation for from_str
for more information.
|
inlinestatic |
Creates a time zone for UTC.
See the Rust documentation for utc
for more information.
|
inline |
Returns whether the gmt_offset
field has nonzero minutes.
Errors if the gmt_offset
field is empty.
See the Rust documentation for has_minutes
for more information.
|
inline |
Returns whether the gmt_offset
field has nonzero seconds.
Errors if the gmt_offset
field is empty.
See the Rust documentation for has_seconds
for more information.
|
inline |
Returns the value of the gmt_offset
field as offset seconds.
Errors if the gmt_offset
field is empty.
See the Rust documentation for offset_seconds
for more information.
Additional information: 1
|
inline |
Returns whether the zone_variant
field is daylight time.
Errors if the zone_variant
field is empty.
See the Rust documentation for daylight
for more information.
Additional information: 1
|
inline |
Returns whether the gmt_offset
field is positive.
Errors if the gmt_offset
field is empty.
See the Rust documentation for is_positive
for more information.
|
inline |
Returns whether the gmt_offset
field is zero.
Errors if the gmt_offset
field is empty (which is not the same as zero).
See the Rust documentation for is_zero
for more information.
|
inline |
Returns whether the zone_variant
field is standard time.
Errors if the zone_variant
field is empty.
See the Rust documentation for standard
for more information.
Additional information: 1
|
inline |
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
|
inline |
Writes the value of the metazone_id
field as a string.
Errors if the metazone_id
field is empty.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
|
inline |
Writes the value of the metazone_id
field as a string.
Errors if the metazone_id
field is empty.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
|
defaultnoexcept |
|
inline |
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
|
inline |
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
|
inline |
Writes the value of the time_zone_id
field as a string.
Errors if the time_zone_id
field is empty.
See the Rust documentation for time_zone_id
for more information.
Additional information: 1
|
inline |
Writes the value of the time_zone_id
field as a string.
Errors if the time_zone_id
field is empty.
See the Rust documentation for time_zone_id
for more information.
Additional information: 1
|
inline |
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
|
inline |
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.
See the Rust documentation for get
for more information.
|
inline |
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.
|
inline |
Sets the metazone_id
field from a string.
Errors if the string is not a valid BCP-47 metazone ID.
See the Rust documentation for metazone_id
for more information.
Additional information: 1
|
inline |
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
|
inline |
Sets the zone_variant
field from a string.
Errors if the string is not a valid zone variant.
See the Rust documentation for zone_variant
for more information.
Additional information: 1
|
inline |
Writes the value of the zone_variant
field as a string.
Errors if the zone_variant
field is empty.
See the Rust documentation for zone_variant
for more information.
Additional information: 1
|
inline |
Writes the value of the zone_variant
field as a string.
Errors if the zone_variant
field is empty.
See the Rust documentation for zone_variant
for more information.
Additional information: 1