OffsetData Struct
struct QTimeZone::OffsetData詳細説明
ある瞬間のタイムゾーンオフセットデータ。
これは、ある時点で使用するタイムゾーンオフセットと省略形を提供します。関数がこの型を返す場合、無効な datetime を使用する可能性があります。これは、その関数が答えているクエリに有効な答えがないことを示すものなので、結果を使用する前にatUtc.isValid()
をチェックしてください。
- OffsetData::atUtc UTC 時刻でのオフセットデータの日時。
- OffsetData::offsetFromUtc 時刻における UTC からのオフセットの合計。
- OffsetData::standardTimeOffset オフセット合計の標準時刻オフセット成分。
- OffsetData::daylightTimeOffset オフセット合計の夏時間オフセット成分。
- OffsetData::abbreviation 日時点で有効な省略形。
たとえば、タイムゾーン "Europe/Berlin" の場合、標準時および夏時間における OffsetDate は次のようになります:
- 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
機能が有効な場合にのみ利用可能です。
© 2025 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.