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
This commit is contained in:
@@ -482,7 +482,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Constructs the object from @a timet value holding the number of seconds
|
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
|
If @a timet is invalid, i.e. @code (time_t)-1 @endcode, wxDateTime
|
||||||
becomes invalid too, i.e. its IsValid() will return @false.
|
becomes invalid too, i.e. its IsValid() will return @false.
|
||||||
@@ -668,8 +668,10 @@ public:
|
|||||||
unsigned short GetSecond(const TimeZone& tz = Local) const;
|
unsigned short GetSecond(const TimeZone& tz = Local) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the number of seconds since Jan 1, 1970. An assert failure will
|
Returns the number of seconds since Jan 1, 1970 UTC.
|
||||||
occur if the date is not in the range covered by @c time_t type.
|
|
||||||
|
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;
|
time_t GetTicks() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user