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

#include <Time.d.hpp>

Public Member Functions

uint8_t hour () const
 
uint8_t minute () const
 
uint8_t second () const
 
uint32_t subsecond () const
 

Static Public Member Functions

static diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::CalendarErrorcreate (uint8_t hour, uint8_t minute, uint8_t second, uint32_t subsecond)
 
static diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::Rfc9557ParseErrorfrom_string (std::string_view v)
 
static diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::CalendarErrorstart_of_day ()
 
static diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::CalendarErrornoon ()
 
static void operator delete (void *ptr)
 

Detailed Description

An ICU4X Time object representing a time in terms of hour, minute, second, nanosecond

See the Rust documentation for Time for more information.

Member Function Documentation

◆ create()

diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::CalendarError > icu4x::Time::create ( uint8_t hour,
uint8_t minute,
uint8_t second,
uint32_t subsecond )
inlinestatic

Creates a new Time given field values

See the Rust documentation for try_new for more information.

◆ from_string()

diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::Rfc9557ParseError > icu4x::Time::from_string ( std::string_view v)
inlinestatic

Creates a new Time from an IXDTF string.

See the Rust documentation for try_from_str for more information.

◆ hour()

uint8_t icu4x::Time::hour ( ) const
inline

Returns the hour in this time

See the Rust documentation for hour for more information.

◆ minute()

uint8_t icu4x::Time::minute ( ) const
inline

Returns the minute in this time

See the Rust documentation for minute for more information.

◆ noon()

diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::CalendarError > icu4x::Time::noon ( )
inlinestatic

Creates a new Time representing noon (12:00:00.000).

See the Rust documentation for noon for more information.

◆ operator delete()

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

◆ second()

uint8_t icu4x::Time::second ( ) const
inline

Returns the second in this time

See the Rust documentation for second for more information.

◆ start_of_day()

diplomat::result< std::unique_ptr< icu4x::Time >, icu4x::CalendarError > icu4x::Time::start_of_day ( )
inlinestatic

Creates a new Time representing the start of the day (00:00:00.000).

See the Rust documentation for start_of_day for more information.

◆ subsecond()

uint32_t icu4x::Time::subsecond ( ) const
inline

Returns the subsecond in this time as nanoseconds

See the Rust documentation for subsecond for more information.


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