xtd 0.2.0
Loading...
Searching...
No Matches
xtd::native::date_time Class Referencefinal

Definition

Contains date time native API.

Namespace
xtd::native
Library
xtd.core.native
Warning
Internal use only

Classes

struct  time_zone_info
 

Protected Static Methods

static time_zone_info get_local_time_zone ()
 Gets a time_zone_info object that represents the local time zone.
 
static std::vector< time_zone_infoget_system_time_zones ()
 Returns a sorted collection of all the time zones about which information is available on the local system.
 
static time_t utc_offset (std::time_t time)
 Gets the utc offset for the specified local time.
 
static bool is_daylight (std::time_t time)
 Indicates whether the ttime_t is within the daylight saving time range for the current time zone.
 

Member Function Documentation

◆ get_local_time_zone()

static time_zone_info xtd::native::date_time::get_local_time_zone ( )
staticprotected

Gets a time_zone_info object that represents the local time zone.

Returns
An object that represents the local time zone.
Warning
Internal use only

◆ get_system_time_zones()

static std::vector< time_zone_info > xtd::native::date_time::get_system_time_zones ( )
staticprotected

Returns a sorted collection of all the time zones about which information is available on the local system.

Returns
An array of time_zone_info objects.
Warning
Internal use only

◆ utc_offset()

static time_t xtd::native::date_time::utc_offset ( std::time_t  time)
staticprotected

Gets the utc offset for the specified local time.

Returns
the utc offset for the specified local time in seconds.
Warning
Internal use only

◆ is_daylight()

static bool xtd::native::date_time::is_daylight ( std::time_t  time)
staticprotected

Indicates whether the ttime_t is within the daylight saving time range for the current time zone.

Returns
true if the time is within the daylight saving time range for the local time zone; otherwise false.
Warning
Internal use only

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