|
ICU4X
International Components for Unicode
|
#include <UtcOffset.d.hpp>
Public Member Functions | |
| int32_t | seconds () const |
| bool | is_non_negative () const |
| bool | is_zero () const |
| int32_t | hours_part () const |
| uint32_t | minutes_part () const |
| uint32_t | seconds_part () const |
Static Public Member Functions | |
| static diplomat::result< std::unique_ptr< icu4x::UtcOffset >, icu4x::TimeZoneInvalidOffsetError > | from_seconds (int32_t seconds) |
| static diplomat::result< std::unique_ptr< icu4x::UtcOffset >, icu4x::TimeZoneInvalidOffsetError > | from_string (std::string_view offset) |
| static void | operator delete (void *ptr) |
See the Rust documentation for UtcOffset for more information.
|
inlinestatic |
Creates an offset from seconds.
Errors if the offset seconds are out of range.
See the Rust documentation for try_from_seconds for more information.
|
inlinestatic |
Creates an offset from a string.
See the Rust documentation for try_from_str for more information.
Additional information: 1
|
inline |
Returns the hours part of the offset.
See the Rust documentation for hours_part for more information.
Additional information: 1
|
inline |
Returns whether the offset is positive.
See the Rust documentation for is_non_negative for more information.
Additional information: 1
|
inline |
Returns whether the offset is zero.
See the Rust documentation for is_zero for more information.
Additional information: 1
|
inline |
Returns the minutes part of the offset.
See the Rust documentation for minutes_part for more information.
Additional information: 1
|
inlinestatic |
|
inline |
Returns the value as offset seconds.
See the Rust documentation for offset for more information.
See the Rust documentation for to_seconds for more information.
Additional information: 1
|
inline |
Returns the seconds part of the offset.
See the Rust documentation for seconds_part for more information.
Additional information: 1