![]() |
CopperSpice API
1.9.2
|
Stores time zone offset data for a transition. More...
Public Members | |
QString | abbreviation |
qint64 | atUtcMSecs |
int | daylightTimeOffset |
int | offsetFromUtc |
int | standardTimeOffset |
Stores time zone offset data for a transition. A transition occurs when Daylight Saving Time turns on or off.
The following example is for the time zone Europe/Berlin
Name | Standard Time | Daylight Saving Time |
---|---|---|
abbreviation | CST | CEST |
atUtcMSecs | QDateTime(QDate(2022, 10, 30), QTime(1, 0, 0), QTimeZone::utc()) | QDateTime(QDate(2023, 3, 26), QTime(1, 0, 0), QTimeZone::utc()) |
daylightTimeOffset | 0 | 3600 |
offsetFromUtc | 3600 | 7200 |
standardTimeOffset | 3600 | 3600 |
QString QTimeZone::OffsetData::abbreviation |
A short string which represents a time zone that is located at a given geographical location.
qint64 QTimeZone::OffsetData::atUtcMSecs |
The offset between Jan 1 1970 at midnight UTC and the start of either Standard Time or Daylight Saving Time.
int QTimeZone::OffsetData::daylightTimeOffset |
The offset between Standard Time and Daylight Saving Time for the current QDateTime.
int QTimeZone::OffsetData::offsetFromUtc |
The offset between UTC and local time for the current QDateTime.
int QTimeZone::OffsetData::standardTimeOffset |
The offset between UTC and Standard Time for the current QDateTime.