ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::ZonedTime Struct Reference

#include <ZonedTime.d.hpp>

Static Public Member Functions

static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseErrorstrict_from_string (std::string_view v, const icu4x::IanaParser &iana_parser)
 
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseErrorlocation_only_from_string (std::string_view v, const icu4x::IanaParser &iana_parser)
 
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseErroroffset_only_from_string (std::string_view v)
 
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseErrorlenient_from_string (std::string_view v, const icu4x::IanaParser &iana_parser)
 

Public Attributes

std::unique_ptr< icu4x::Timetime
 
std::unique_ptr< icu4x::TimeZoneInfozone
 

Detailed Description

An ICU4X ZonedTime object capable of containing a ISO-8601 time, and zone.

See the Rust documentation for ZonedTime for more information.

Member Function Documentation

◆ lenient_from_string()

icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > icu4x::ZonedTime::lenient_from_string ( std::string_view v,
const icu4x::IanaParser & iana_parser )
inlinestatic

Creates a new ZonedTime from an IXDTF string, without requiring the offset.

See the Rust documentation for try_lenient_from_str for more information.

◆ location_only_from_string()

icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > icu4x::ZonedTime::location_only_from_string ( std::string_view v,
const icu4x::IanaParser & iana_parser )
inlinestatic

Creates a new ZonedTime from a location-only IXDTF string.

See the Rust documentation for try_location_only_from_str for more information.

◆ offset_only_from_string()

icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > icu4x::ZonedTime::offset_only_from_string ( std::string_view v)
inlinestatic

Creates a new ZonedTime from an offset-only IXDTF string.

See the Rust documentation for try_offset_only_from_str for more information.

◆ strict_from_string()

icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > icu4x::ZonedTime::strict_from_string ( std::string_view v,
const icu4x::IanaParser & iana_parser )
inlinestatic

Creates a new ZonedTime from an IXDTF string.

See the Rust documentation for try_strict_from_str for more information.

Member Data Documentation

◆ time

std::unique_ptr<icu4x::Time> icu4x::ZonedTime::time

◆ zone

std::unique_ptr<icu4x::TimeZoneInfo> icu4x::ZonedTime::zone

The documentation for this struct was generated from the following files: