wxDateTime::TimeZone Class Reference | wxWidgets

| Version: 3.2.11

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
wxDateTime::TimeZone Class Reference

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.2/wxWidgets3.2-3.2.11-1.x86_64/src/wxWidgets-3.2.11/interface/wx/datetime.h>`

## Detailed Description

Class representing a time zone.

The representation is simply the offset, in seconds, from UTC.

## Public Member Functions
| TimeZone (TZ tz)
| Constructor for a named time zone.
| TimeZone (long offset=0)
| Constructor for the given offset in seconds.
bool | IsLocal () const
| Return true if this is the local time zone.
long | GetOffset () const
| Return the offset of this time zone from UTC, in seconds.

## Static Public Member Functions
static TimeZone | Make (long offset)
| Create a time zone with the given offset in seconds.

## Constructor & Destructor Documentation

## ◆ TimeZone() [1/2]

wxDateTime::TimeZone::TimeZone | ( | TZ | tz | ) |

Constructor for a named time zone.

## ◆ TimeZone() [2/2]

wxDateTime::TimeZone::TimeZone | ( | long | offset = 0 | ) |

Constructor for the given offset in seconds.

## Member Function Documentation

## ◆ GetOffset()

long wxDateTime::TimeZone::GetOffset | ( |  | ) | const

Return the offset of this time zone from UTC, in seconds.

## ◆ IsLocal()

bool wxDateTime::TimeZone::IsLocal | ( |  | ) | const

Return true if this is the local time zone.

This method can be useful for distinguishing between UTC time zone and local time zone in Great Britain, which use the same offset as UTC (i.e. 0), but do use DST.

Since
  3.1.1

## ◆ Make()

TimeZone wxDateTime::TimeZone::Make | ( | long | offset | ) |
| static

Create a time zone with the given offset in seconds.