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

#include <ICU4XZonedDateTimeFormatter.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorformat_datetime_with_custom_time_zone_to_writeable (const ICU4XDateTime &datetime, const ICU4XCustomTimeZone &time_zone, W &write) const
 
diplomat::result< std::string, ICU4XErrorformat_datetime_with_custom_time_zone (const ICU4XDateTime &datetime, const ICU4XCustomTimeZone &time_zone) const
 
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
 
 ICU4XZonedDateTimeFormatter (capi::ICU4XZonedDateTimeFormatter *i)
 
 ICU4XZonedDateTimeFormatter ()=default
 
 ICU4XZonedDateTimeFormatter (ICU4XZonedDateTimeFormatter &&) noexcept=default
 
ICU4XZonedDateTimeFormatteroperator= (ICU4XZonedDateTimeFormatter &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XZonedDateTimeFormatter, ICU4XErrorcreate_with_lengths (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XDateLength date_length, ICU4XTimeLength time_length)
 
static diplomat::result< ICU4XZonedDateTimeFormatter, 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 ZonedDateTimeFormatter for more information.

Constructor & Destructor Documentation

◆ ICU4XZonedDateTimeFormatter() [1/3]

ICU4XZonedDateTimeFormatter::ICU4XZonedDateTimeFormatter ( capi::ICU4XZonedDateTimeFormatter * i)
inlineexplicit

◆ ICU4XZonedDateTimeFormatter() [2/3]

ICU4XZonedDateTimeFormatter::ICU4XZonedDateTimeFormatter ( )
default

◆ ICU4XZonedDateTimeFormatter() [3/3]

ICU4XZonedDateTimeFormatter::ICU4XZonedDateTimeFormatter ( ICU4XZonedDateTimeFormatter && )
defaultnoexcept

Member Function Documentation

◆ create_with_lengths()

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

Creates a new [ICU4XZonedDateTimeFormatter] 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< ICU4XZonedDateTimeFormatter, ICU4XError > ICU4XZonedDateTimeFormatter::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 [ICU4XZonedDateTimeFormatter] 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_datetime_with_custom_time_zone()

diplomat::result< std::string, ICU4XError > ICU4XZonedDateTimeFormatter::format_datetime_with_custom_time_zone ( const ICU4XDateTime & datetime,
const ICU4XCustomTimeZone & time_zone ) const
inline

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

See the Rust documentation for format for more information.

◆ format_datetime_with_custom_time_zone_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XZonedDateTimeFormatter::format_datetime_with_custom_time_zone_to_writeable ( const ICU4XDateTime & datetime,
const ICU4XCustomTimeZone & time_zone,
W & write ) const
inline

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

See the Rust documentation for format for more information.

◆ format_iso_datetime_with_custom_time_zone()

diplomat::result< std::string, ICU4XError > ICU4XZonedDateTimeFormatter::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 > ICU4XZonedDateTimeFormatter::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=()

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

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