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

#include <ZonedDateTime.d.hpp>

Static Public Member Functions

static diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseErrorfull_from_string (std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser, const icu4x::VariantOffsetsCalculator &offset_calculator)
 
static diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseErrorlocation_only_from_string (std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser)
 
static diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseErroroffset_only_from_string (std::string_view v, const icu4x::Calendar &calendar)
 
static diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseErrorlenient_from_string (std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser)
 

Public Attributes

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

Detailed Description

An ICU4X DateTime object capable of containing a date, time, and zone for any calendar.

See the Rust documentation for ZonedDateTime for more information.

Member Function Documentation

◆ full_from_string()

diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > icu4x::ZonedDateTime::full_from_string ( std::string_view v,
const icu4x::Calendar & calendar,
const icu4x::IanaParser & iana_parser,
const icu4x::VariantOffsetsCalculator & offset_calculator )
inlinestatic

Creates a new ZonedDateTime from an IXDTF string.

See the Rust documentation for try_full_from_str for more information.

◆ lenient_from_string()

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

Creates a new ZonedDateTime from an IXDTF string, without requiring the offset or calculating the zone variant.

See the Rust documentation for try_lenient_from_str for more information.

◆ location_only_from_string()

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

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

See the Rust documentation for try_location_only_from_str for more information.

◆ offset_only_from_string()

diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > icu4x::ZonedDateTime::offset_only_from_string ( std::string_view v,
const icu4x::Calendar & calendar )
inlinestatic

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

See the Rust documentation for try_offset_only_from_str for more information.

Member Data Documentation

◆ date

std::unique_ptr<icu4x::Date> icu4x::ZonedDateTime::date

◆ time

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

◆ zone

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

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