sptk2 logo
SPTK Home Page
Static Public Member Functions | List of all members
sptk::TimeZone Class Reference

#include <DateTime.h>

Static Public Member Functions

static String name ()
 
static std::chrono::minutes offset ()
 
static int isDaylightSavingsTime ()
 
static void set (const sptk::String &timeZoneName)
 

Detailed Description

Timezone-related information (global, static)

Member Function Documentation

◆ isDaylightSavingsTime()

static int sptk::TimeZone::isDaylightSavingsTime ( )
static

Get timezone offset

Returns
timezone offset

◆ name()

static String sptk::TimeZone::name ( )
static

Time zone abbbreviastion

◆ offset()

static std::chrono::minutes sptk::TimeZone::offset ( )
static

Get timezone offset

Returns
timezone offset, minutes

◆ set()

static void sptk::TimeZone::set ( const sptk::String timeZoneName)
static

Set timezone for the application

Parameters
timeZoneNameTime zone name, such as "UTC", ":US/Pacific", etc

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

Fri Oct 14 2022 09:58:47: SPTK 5.4.1