Class ICU4XCustomTimeZone

See the Rust documentation for CustomTimeZone for more information.

Constructors

Methods

  • Clears the gmt_offset field.

    See the Rust documentation for offset_seconds for more information.

    Additional information: 1

    Returns void

  • Clears the metazone_id field.

    See the Rust documentation for metazone_id for more information.

    Additional information: 1

    Returns void

  • Clears the time_zone_id field.

    See the Rust documentation for time_zone_id for more information.

    Additional information: 1

    Returns void

  • Clears the zone_variant field.

    See the Rust documentation for zone_variant for more information.

    Additional information: 1

    Returns void

  • 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 boolean

  • 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 boolean

  • 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 number

  • 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 boolean

  • 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 boolean

  • 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 boolean

  • 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

    Returns boolean

  • 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

    Returns string

  • 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

    Returns void

  • 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

    Returns void

  • 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

    Returns string

  • 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.

    Parameters

    Returns void

  • 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

    Parameters

    • id: string

    Returns void

  • 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

    Returns string