ICU4X
International Components for Unicode
|
#include <ICU4XIsoDate.hpp>
Public Member Functions | |
ICU4XDate | to_calendar (const ICU4XCalendar &calendar) const |
ICU4XDate | to_any () const |
uint16_t | day_of_year () const |
uint32_t | day_of_month () const |
ICU4XIsoWeekday | day_of_week () const |
uint32_t | week_of_month (ICU4XIsoWeekday first_weekday) const |
diplomat::result< ICU4XWeekOf, ICU4XError > | week_of_year (const ICU4XWeekCalculator &calculator) const |
uint32_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 |
ICU4XIsoDate (capi::ICU4XIsoDate *i) | |
ICU4XIsoDate ()=default | |
ICU4XIsoDate (ICU4XIsoDate &&) noexcept=default | |
ICU4XIsoDate & | operator= (ICU4XIsoDate &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XIsoDate, ICU4XError > | create (int32_t year, uint8_t month, uint8_t day) |
static ICU4XIsoDate | create_for_unix_epoch () |
An ICU4X Date object capable of containing a ISO-8601 date
See the Rust documentation for Date
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Creates a new [ICU4XIsoDate
] from the specified date and time.
See the Rust documentation for try_new_iso_date
for more information.
|
inlinestatic |
Creates a new [ICU4XIsoDate
] representing January 1, 1970.
See the Rust documentation for unix_epoch
for more information.
|
inline |
Returns the 1-indexed day in the month for this date
See the Rust documentation for day_of_month
for more information.
|
inline |
Returns the day in the week for this day
See the Rust documentation for day_of_week
for more information.
|
inline |
Returns the 1-indexed day in the year for this date
See the Rust documentation for day_of_year_info
for more information.
|
inline |
Returns the number of days in the month represented by this date
See the Rust documentation for days_in_month
for more information.
|
inline |
Returns the number of days in the year represented by this date
See the Rust documentation for days_in_year
for more information.
|
inline |
Returns if the year is a leap year for this date
See the Rust documentation for is_in_leap_year
for more information.
|
inline |
Returns 1-indexed number of the month of this date in its year
See the Rust documentation for month
for more information.
|
inline |
Returns the number of months in the year represented by this date
See the Rust documentation for months_in_year
for more information.
|
defaultnoexcept |
|
inline |
See the Rust documentation for to_any
for more information.
|
inline |
Convert this date to one in a different calendar
See the Rust documentation for to_calendar
for more information.
|
inline |
Returns the week number in this month, 1-indexed, based on what is considered the first day of the week (often a locale preference).
first_weekday
can be obtained via first_weekday()
on [ICU4XWeekCalculator
]
See the Rust documentation for week_of_month
for more information.
|
inline |
Returns the week number in this year, using week data
See the Rust documentation for week_of_year
for more information.
|
inline |
Returns the year number for this date
See the Rust documentation for year
for more information.