From 8d6ee59948ef7d56694db0aa9e14212cb1787972 Mon Sep 17 00:00:00 2001 From: John Layt Date: Mon, 2 Sep 2013 16:35:25 +0200 Subject: 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 --- src/corelib/tools/qdatetime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/tools/qdatetime.h') 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 -- cgit v1.2.3