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

#include <TimeZone.d.hpp>

Public Member Functions

bool is_unknown () const
 
std::unique_ptr< icu4x::TimeZoneInfowith_offset (const icu4x::UtcOffset &offset) const
 
std::unique_ptr< icu4x::TimeZoneInfowithout_offset () const
 

Static Public Member Functions

static std::unique_ptr< icu4x::TimeZoneunknown ()
 
static std::unique_ptr< icu4x::TimeZonecreate_from_bcp47 (std::string_view id)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for TimeZone for more information.

Member Function Documentation

◆ create_from_bcp47()

std::unique_ptr< icu4x::TimeZone > icu4x::TimeZone::create_from_bcp47 ( std::string_view id)
inlinestatic

Creates a time zone from a BCP-47 string.

Returns the unknown time zone if the string is not a valid BCP-47 subtag.

Additional information: 1

◆ is_unknown()

bool icu4x::TimeZone::is_unknown ( ) const
inline

Whether the time zone is the unknown zone.

See the Rust documentation for is_unknown for more information.

◆ operator delete()

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

◆ unknown()

std::unique_ptr< icu4x::TimeZone > icu4x::TimeZone::unknown ( )
inlinestatic

The unknown time zone.

See the Rust documentation for unknown for more information.

◆ with_offset()

std::unique_ptr< icu4x::TimeZoneInfo > icu4x::TimeZone::with_offset ( const icu4x::UtcOffset & offset) const
inline

See the Rust documentation for with_offset for more information.

◆ without_offset()

std::unique_ptr< icu4x::TimeZoneInfo > icu4x::TimeZone::without_offset ( ) const
inline

See the Rust documentation for without_offset for more information.


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