QTimeZone::OffsetData Struct
struct QTimeZone::OffsetDataDescrizione dettagliata
I dati relativi all'offset del fuso orario per un determinato momento.
Fornisce gli offset di fuso orario e le abbreviazioni da utilizzare in un determinato momento. Quando una funzione restituisce questo tipo, potrebbe utilizzare una data e ora non valide per indicare che la query a cui sta rispondendo non ha una risposta valida; pertanto, controllare atUtc.isValid() prima di utilizzare i risultati.
- OffsetData::atUtc La data e l’ora dei dati di offset in formato UTC.
- OffsetData::offsetFromUtc L'offset totale rispetto all'UTC in vigore in quel momento.
- OffsetData::standardTimeOffset La componente di offset dell’ora standard dell’offset totale.
- OffsetData::daylightTimeOffset La componente di offset DST dell’offset totale.
- OffsetData::abbreviation L’abbreviazione in vigore alla data e ora specificate.
Ad esempio, per il fuso orario "Europe/Berlin" l'OffsetData in ora standard e ora legale potrebbe essere:
- atUtc = QDateTime(QDate(2013, 1, 1), QTime(0, 0), QTimeZone::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- abbreviazione = "CET"
- atUtc = QDateTime(QDate(2013, 6, 1), QTime(0, 0), QTimeZone::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- abbreviazione = "CEST"
Questo tipo è disponibile solo quando è abilitata la funzionalità " timezone ".
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.