ICU4X
International Components for Unicode
|
#include <ICU4XIsoDateTime.hpp>
Public Member Functions | |
ICU4XIsoDate | date () const |
ICU4XTime | time () const |
ICU4XDateTime | to_any () const |
int32_t | minutes_since_local_unix_epoch () const |
ICU4XDateTime | to_calendar (const ICU4XCalendar &calendar) const |
uint8_t | hour () const |
uint8_t | minute () const |
uint8_t | second () const |
uint32_t | nanosecond () 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 |
ICU4XIsoDateTime (capi::ICU4XIsoDateTime *i) | |
ICU4XIsoDateTime ()=default | |
ICU4XIsoDateTime (ICU4XIsoDateTime &&) noexcept=default | |
ICU4XIsoDateTime & | operator= (ICU4XIsoDateTime &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XIsoDateTime, ICU4XError > | create (int32_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t nanosecond) |
static ICU4XIsoDateTime | crate_from_date_and_time (const ICU4XIsoDate &date, const ICU4XTime &time) |
static ICU4XIsoDateTime | local_unix_epoch () |
static ICU4XIsoDateTime | create_from_minutes_since_local_unix_epoch (int32_t minutes) |
An ICU4X DateTime object capable of containing a ISO-8601 date and time.
See the Rust documentation for DateTime
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Creates a new [ICU4XIsoDateTime
] from an [ICU4XIsoDate
] and [ICU4XTime
] object
See the Rust documentation for new
for more information.
|
inlinestatic |
Creates a new [ICU4XIsoDateTime
] from the specified date and time.
See the Rust documentation for try_new_iso_datetime
for more information.
|
inlinestatic |
Construct from the minutes since the local unix epoch for this date (Jan 1 1970, 00:00)
See the Rust documentation for from_minutes_since_local_unix_epoch
for more information.
|
inline |
Gets the date contained in this object
See the Rust documentation for date
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 the hour in this time
See the Rust documentation for hour
for more information.
|
inline |
Returns whether this date is in a leap year
See the Rust documentation for is_in_leap_year
for more information.
|
inlinestatic |
Creates a new [ICU4XIsoDateTime
] of midnight on January 1, 1970
See the Rust documentation for local_unix_epoch
for more information.
|
inline |
Returns the minute in this time
See the Rust documentation for minute
for more information.
|
inline |
Gets the minutes since the local unix epoch for this date (Jan 1 1970, 00:00)
See the Rust documentation for minutes_since_local_unix_epoch
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.
|
inline |
Returns the nanosecond in this time
See the Rust documentation for nanosecond
for more information.
|
defaultnoexcept |
|
inline |
Returns the second in this time
See the Rust documentation for second
for more information.
|
inline |
Gets the time contained in this object
See the Rust documentation for time
for more information.
|
inline |
Converts this to an [ICU4XDateTime
] capable of being mixed with dates of other calendars
See the Rust documentation for to_any
for more information.
|
inline |
Convert this datetime 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.