CopperSpice API  1.8.1
QTimeZone::OffsetData Class Reference

Time Zone offset data for a given time. More...

Detailed Description

The time zone offset data for a given moment in time. This consists of the time zone offsets and abbreviation to use at that moment in time.

OffsetData::atUtc
Datetime of the offset data in UTC time
OffsetData::offsetFromUtc
Total offset from UTC in effect at the datetime
OffsetData::standardTimeOffset
Standard time offset component of the total offset
OffsetData::daylightTimeOffset
DST offset component of the total offset
OffsetData::abbreviation
The abbreviation in effect at the datetime.


The following is an example for the time zone "Europe/Berlin" both inside and outside of DST.

atUtc
QDateTime(QDate(2013, 1, 1), QTime(0, 0, 0), Qt::UTC)
offsetFromUtc
3600
standardTimeOffset
3600
daylightTimeOffset
0
abbreviation
"CET"


The following is an example for the time zone "Europe/Berlin", ignoring DST.

atUtc
QDateTime(QDate(2013, 6, 1), QTime(0, 0, 0), Qt::UTC)
offsetFromUtc
7200
standardTimeOffset
3600
daylightTimeOffset
3600
abbreviation
"CEST"