ICU4X
International Components for Unicode
|
#include <ICU4XTime.hpp>
Public Member Functions | |
uint8_t | hour () const |
uint8_t | minute () const |
uint8_t | second () const |
uint32_t | nanosecond () const |
ICU4XTime (capi::ICU4XTime *i) | |
ICU4XTime ()=default | |
ICU4XTime (ICU4XTime &&) noexcept=default | |
ICU4XTime & | operator= (ICU4XTime &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XTime, ICU4XError > | create (uint8_t hour, uint8_t minute, uint8_t second, uint32_t nanosecond) |
static diplomat::result< ICU4XTime, ICU4XError > | create_midnight () |
An ICU4X Time object representing a time in terms of hour, minute, second, nanosecond
See the Rust documentation for Time
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Creates a new [ICU4XTime
] given field values
See the Rust documentation for try_new
for more information.
|
inlinestatic |
Creates a new [ICU4XTime
] representing midnight (00:00.000).
See the Rust documentation for midnight
for more information.
|
inline |
Returns the hour in this time
See the Rust documentation for hour
for more information.
|
inline |
Returns the minute in this time
See the Rust documentation for minute
for more information.
|
inline |
Returns the nanosecond in this time
See the Rust documentation for nanosecond
for more information.
|
inline |
Returns the second in this time
See the Rust documentation for second
for more information.