ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ICU4XGregorianZonedDateTimeFormatter Class Reference

#include <ICU4XGregorianZonedDateTimeFormatter.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorformat_iso_datetime_with_custom_time_zone_to_writeable (const ICU4XIsoDateTime &datetime, const ICU4XCustomTimeZone &time_zone, W &write) const
 
diplomat::result< std::string, ICU4XErrorformat_iso_datetime_with_custom_time_zone (const ICU4XIsoDateTime &datetime, const ICU4XCustomTimeZone &time_zone) const
 
 ICU4XGregorianZonedDateTimeFormatter (capi::ICU4XGregorianZonedDateTimeFormatter *i)
 
 ICU4XGregorianZonedDateTimeFormatter ()=default
 
 ICU4XGregorianZonedDateTimeFormatter (ICU4XGregorianZonedDateTimeFormatter &&) noexcept=default
 
ICU4XGregorianZonedDateTimeFormatteroperator= (ICU4XGregorianZonedDateTimeFormatter &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XGregorianZonedDateTimeFormatter, ICU4XErrorcreate_with_lengths (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XDateLength date_length, ICU4XTimeLength time_length)
 
static diplomat::result< ICU4XGregorianZonedDateTimeFormatter, ICU4XErrorcreate_with_lengths_and_iso_8601_time_zone_fallback (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XDateLength date_length, ICU4XTimeLength time_length, ICU4XIsoTimeZoneOptions zone_options)
 

Detailed Description

An object capable of formatting a date time with time zone to a string.

See the Rust documentation for TypedZonedDateTimeFormatter for more information.

Constructor & Destructor Documentation

◆ ICU4XGregorianZonedDateTimeFormatter() [1/3]

ICU4XGregorianZonedDateTimeFormatter::ICU4XGregorianZonedDateTimeFormatter ( capi::ICU4XGregorianZonedDateTimeFormatter * i)
inlineexplicit

◆ ICU4XGregorianZonedDateTimeFormatter() [2/3]

ICU4XGregorianZonedDateTimeFormatter::ICU4XGregorianZonedDateTimeFormatter ( )
default

◆ ICU4XGregorianZonedDateTimeFormatter() [3/3]

ICU4XGregorianZonedDateTimeFormatter::ICU4XGregorianZonedDateTimeFormatter ( ICU4XGregorianZonedDateTimeFormatter && )
defaultnoexcept

Member Function Documentation

◆ create_with_lengths()

diplomat::result< ICU4XGregorianZonedDateTimeFormatter, ICU4XError > ICU4XGregorianZonedDateTimeFormatter::create_with_lengths ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XDateLength date_length,
ICU4XTimeLength time_length )
inlinestatic

Creates a new [ICU4XGregorianZonedDateTimeFormatter] from locale data.

This function has date_length and time_length arguments and uses default options for the time zone.

See the Rust documentation for try_new for more information.

◆ create_with_lengths_and_iso_8601_time_zone_fallback()

diplomat::result< ICU4XGregorianZonedDateTimeFormatter, ICU4XError > ICU4XGregorianZonedDateTimeFormatter::create_with_lengths_and_iso_8601_time_zone_fallback ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XDateLength date_length,
ICU4XTimeLength time_length,
ICU4XIsoTimeZoneOptions zone_options )
inlinestatic

Creates a new [ICU4XGregorianZonedDateTimeFormatter] from locale data.

This function has date_length and time_length arguments and uses an ISO-8601 style fallback for the time zone with the given configurations.

See the Rust documentation for try_new for more information.

◆ format_iso_datetime_with_custom_time_zone()

diplomat::result< std::string, ICU4XError > ICU4XGregorianZonedDateTimeFormatter::format_iso_datetime_with_custom_time_zone ( const ICU4XIsoDateTime & datetime,
const ICU4XCustomTimeZone & time_zone ) const
inline

Formats a [ICU4XIsoDateTime] and [ICU4XCustomTimeZone] to a string.

See the Rust documentation for format for more information.

◆ format_iso_datetime_with_custom_time_zone_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XGregorianZonedDateTimeFormatter::format_iso_datetime_with_custom_time_zone_to_writeable ( const ICU4XIsoDateTime & datetime,
const ICU4XCustomTimeZone & time_zone,
W & write ) const
inline

Formats a [ICU4XIsoDateTime] and [ICU4XCustomTimeZone] to a string.

See the Rust documentation for format for more information.

◆ operator=()

ICU4XGregorianZonedDateTimeFormatter & ICU4XGregorianZonedDateTimeFormatter::operator= ( ICU4XGregorianZonedDateTimeFormatter && other)
defaultnoexcept

The documentation for this class was generated from the following file: