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

#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::TimeZoneInvalidOffsetErrorfrom_seconds (int32_t seconds)
 
static diplomat::result< std::unique_ptr< icu4x::UtcOffset >, icu4x::TimeZoneInvalidOffsetErrorfrom_string (std::string_view offset)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for UtcOffset for more information.

Member Function Documentation

◆ from_seconds()

diplomat::result< std::unique_ptr< icu4x::UtcOffset >, icu4x::TimeZoneInvalidOffsetError > icu4x::UtcOffset::from_seconds ( int32_t seconds)
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.

◆ from_string()

diplomat::result< std::unique_ptr< icu4x::UtcOffset >, icu4x::TimeZoneInvalidOffsetError > icu4x::UtcOffset::from_string ( std::string_view offset)
inlinestatic

Creates an offset from a string.

See the Rust documentation for try_from_str for more information.

Additional information: 1

◆ hours_part()

int32_t icu4x::UtcOffset::hours_part ( ) const
inline

Returns the hours part of the offset.

See the Rust documentation for hours_part for more information.

Additional information: 1

◆ is_non_negative()

bool icu4x::UtcOffset::is_non_negative ( ) const
inline

Returns whether the offset is positive.

See the Rust documentation for is_non_negative for more information.

Additional information: 1

◆ is_zero()

bool icu4x::UtcOffset::is_zero ( ) const
inline

Returns whether the offset is zero.

See the Rust documentation for is_zero for more information.

Additional information: 1

◆ minutes_part()

uint32_t icu4x::UtcOffset::minutes_part ( ) const
inline

Returns the minutes part of the offset.

See the Rust documentation for minutes_part for more information.

Additional information: 1

◆ operator delete()

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

◆ seconds()

int32_t icu4x::UtcOffset::seconds ( ) const
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

◆ seconds_part()

uint32_t icu4x::UtcOffset::seconds_part ( ) const
inline

Returns the seconds part of the offset.

See the Rust documentation for seconds_part for more information.

Additional information: 1


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