From 416d505ee97d2f8f0a3cc13a4f1d373875af3b02 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Jul 2013 18:20:45 +0000 Subject: [PATCH] Explicitly mention that wxDateTime ticks origin is in UTC. Make it clear that the number of ticks is counted since the same moment in all time zones. See #13098. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/datetime.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/interface/wx/datetime.h b/interface/wx/datetime.h index 9282ab32db..f49315e693 100644 --- a/interface/wx/datetime.h +++ b/interface/wx/datetime.h @@ -482,7 +482,7 @@ public: /** Constructs the object from @a timet value holding the number of seconds - since Jan 1, 1970. + since Jan 1, 1970 UTC. If @a timet is invalid, i.e. @code (time_t)-1 @endcode, wxDateTime becomes invalid too, i.e. its IsValid() will return @false. @@ -668,8 +668,10 @@ public: unsigned short GetSecond(const TimeZone& tz = Local) const; /** - Returns the number of seconds since Jan 1, 1970. An assert failure will - occur if the date is not in the range covered by @c time_t type. + Returns the number of seconds since Jan 1, 1970 UTC. + + An assert failure will occur if the date is not in the range covered by + @c time_t type, use GetValue() if you work with dates outside of it. */ time_t GetTicks() const; -- 2.45.2