QTimeZone::OffsetData Struct
struct QTimeZone::OffsetData詳細説明
特定の時点におけるタイムゾーンオフセットデータ。
これは、特定の時点において使用するタイムゾーンのオフセットと略称を提供します。関数がこの型を返す場合、その関数が処理しているクエリに有効な回答がないことを示すために無効な日時を使用している可能性があるため、結果を使用する前に `atUtc.isValid() ` を確認してください。
- OffsetData::atUtc オフセットデータの UTC 時刻。
- OffsetData::offsetFromUtc その日時において有効な、UTC からの合計オフセット。
- OffsetData::standardTimeOffset 総オフセットのうち、標準時間オフセットの成分。
- OffsetData::daylightTimeOffset 総オフセットのうち、夏時間(DST)によるオフセット成分。
- OffsetData::abbreviation その日時で有効な略称。
たとえば、タイムゾーン「Europe/Berlin」の場合、標準時および夏時間の OffsetData は次のようになります。
- atUtc =QDateTime(QDate(2013, 1, 1),QTime(0, 0),QTimeZone::UTC)
- offsetFromUtc = 3600
- standardTimeOffset = 3600
- daylightTimeOffset = 0
- 略称 = "CET"
- atUtc =QDateTime(QDate(2013, 6, 1),QTime(0, 0),QTimeZone::UTC)
- offsetFromUtc = 7200
- standardTimeOffset = 3600
- daylightTimeOffset = 3600
- 略称 = "CEST"
このタイプは、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.