path: root/src/corelib/tools/qdatetime.h
diff options
authorJohn Layt <>2013-09-02 16:35:25 +0200
committerThe Qt Project <>2013-09-20 23:45:06 +0200
commit8d6ee59948ef7d56694db0aa9e14212cb1787972 (patch)
tree5b7e654566a61169c02cd1217611cc65a3c9759d /src/corelib/tools/qdatetime.h
parentfafc2daf94e46f4e4283abd3acf6613138262c27 (diff)
QDateTime - Add api for isDaylightTime()
Add new method to return if the current time is Daylight Time. [ChangeLog][QtCore][QDateTime] Added new method isDaylightTime() to return if the datetime is in Daylight Time or not. Change-Id: Icb93fd5dd0b2f7d83d2d4643eeb12922c1137e3e Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/tools/qdatetime.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qdatetime.h b/src/corelib/tools/qdatetime.h
index 779aae5b5b..4b97cd797d 100644
--- a/src/corelib/tools/qdatetime.h
+++ b/src/corelib/tools/qdatetime.h
@@ -223,6 +223,7 @@ public:
Qt::TimeSpec timeSpec() const;
int offsetFromUtc() const;
QString timeZoneAbbreviation() const;
+ bool isDaylightTime() const;
qint64 toMSecsSinceEpoch() const;
// ### Qt 6: use quint64 instead of uint