ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::IsoDate Class Reference

#include <IsoDate.d.hpp>

Public Member Functions

std::unique_ptr< icu4x::Dateto_calendar (const icu4x::Calendar &calendar) const
 
std::unique_ptr< icu4x::Dateto_any () const
 
int64_t to_rata_die () const
 
uint16_t day_of_year () const
 
uint8_t day_of_month () const
 
icu4x::Weekday day_of_week () const
 
icu4x::IsoWeekOfYear week_of_year () const
 
uint8_t month () const
 
int32_t year () const
 
bool is_in_leap_year () const
 
uint8_t months_in_year () const
 
uint8_t days_in_month () const
 
uint16_t days_in_year () const
 

Static Public Member Functions

static diplomat::result< std::unique_ptr< icu4x::IsoDate >, icu4x::CalendarErrorcreate (int32_t year, uint8_t month, uint8_t day)
 
static std::unique_ptr< icu4x::IsoDatefrom_rata_die (int64_t rd)
 
static diplomat::result< std::unique_ptr< icu4x::IsoDate >, icu4x::Rfc9557ParseErrorfrom_string (std::string_view v)
 
static void operator delete (void *ptr)
 

Detailed Description

An ICU4X Date object capable of containing a ISO-8601 date

See the Rust documentation for Date for more information.

Member Function Documentation

◆ create()

diplomat::result< std::unique_ptr< icu4x::IsoDate >, icu4x::CalendarError > icu4x::IsoDate::create ( int32_t year,
uint8_t month,
uint8_t day )
inlinestatic

Creates a new IsoDate from the specified date.

See the Rust documentation for try_new_iso for more information.

◆ day_of_month()

uint8_t icu4x::IsoDate::day_of_month ( ) const
inline

Returns the 1-indexed day in the month for this date

See the Rust documentation for day_of_month for more information.

◆ day_of_week()

icu4x::Weekday icu4x::IsoDate::day_of_week ( ) const
inline

Returns the day in the week for this day

See the Rust documentation for day_of_week for more information.

◆ day_of_year()

uint16_t icu4x::IsoDate::day_of_year ( ) const
inline

Returns the 1-indexed day in the year for this date

See the Rust documentation for day_of_year for more information.

◆ days_in_month()

uint8_t icu4x::IsoDate::days_in_month ( ) const
inline

Returns the number of days in the month represented by this date

See the Rust documentation for days_in_month for more information.

◆ days_in_year()

uint16_t icu4x::IsoDate::days_in_year ( ) const
inline

Returns the number of days in the year represented by this date

See the Rust documentation for days_in_year for more information.

◆ from_rata_die()

std::unique_ptr< icu4x::IsoDate > icu4x::IsoDate::from_rata_die ( int64_t rd)
inlinestatic

Creates a new IsoDate from the given Rata Die

See the Rust documentation for from_rata_die for more information.

◆ from_string()

diplomat::result< std::unique_ptr< icu4x::IsoDate >, icu4x::Rfc9557ParseError > icu4x::IsoDate::from_string ( std::string_view v)
inlinestatic

Creates a new IsoDate from an IXDTF string.

See the Rust documentation for try_from_str for more information.

◆ is_in_leap_year()

bool icu4x::IsoDate::is_in_leap_year ( ) const
inline

Returns if the year is a leap year for this date

See the Rust documentation for is_in_leap_year for more information.

◆ month()

uint8_t icu4x::IsoDate::month ( ) const
inline

Returns 1-indexed number of the month of this date in its year

See the Rust documentation for ordinal for more information.

Additional information: 1

◆ months_in_year()

uint8_t icu4x::IsoDate::months_in_year ( ) const
inline

Returns the number of months in the year represented by this date

See the Rust documentation for months_in_year for more information.

◆ operator delete()

void icu4x::IsoDate::operator delete ( void * ptr)
inlinestatic

◆ to_any()

std::unique_ptr< icu4x::Date > icu4x::IsoDate::to_any ( ) const
inline

See the Rust documentation for to_any for more information.

◆ to_calendar()

std::unique_ptr< icu4x::Date > icu4x::IsoDate::to_calendar ( const icu4x::Calendar & calendar) const
inline

Convert this date to one in a different calendar

See the Rust documentation for to_calendar for more information.

◆ to_rata_die()

int64_t icu4x::IsoDate::to_rata_die ( ) const
inline

Returns this date's Rata Die

See the Rust documentation for to_rata_die for more information.

◆ week_of_year()

icu4x::IsoWeekOfYear icu4x::IsoDate::week_of_year ( ) const
inline

Returns the week number in this year, using week data

See the Rust documentation for week_of_year for more information.

◆ year()

int32_t icu4x::IsoDate::year ( ) const
inline

Returns the year number in the current era for this date

For calendars without an era, returns the extended year

See the Rust documentation for year for more information.


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