X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59068d79f7fcc94d320cf41ce1ed7f0a8851b125..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/time.h diff --git a/interface/wx/time.h b/interface/wx/time.h index 23db295696..a6b821648d 100644 --- a/interface/wx/time.h +++ b/interface/wx/time.h @@ -3,7 +3,6 @@ // Purpose: Time-related functions. // Author: Vadim Zeitlin // Created: 2011-11-27 -// RCS-ID: $Id$ // Copyright: (c) 2011 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -18,4 +17,53 @@ */ int wxGetTimeZone(); +/** + Returns the number of seconds since local time 00:00:00 Jan 1st 1970. + + @see wxDateTime::Now() + + @header{wx/time.h} +*/ +long wxGetLocalTime(); + +/** + Returns the number of milliseconds since local time 00:00:00 Jan 1st 1970. + + The use of wxGetUTCTimeMillis() is preferred as it provides a usually + (except for changes to the system time) monotonic clock which the local + time also changes whenever DST begins or ends. + + @see wxDateTime::Now(), wxGetUTCTimeMillis(), wxGetUTCTimeUSec() + + @header{wx/time.h} +*/ +wxLongLong wxGetLocalTimeMillis(); + +/** + Returns the number of seconds since GMT 00:00:00 Jan 1st 1970. + + @see wxDateTime::Now() + + @header{wx/time.h} +*/ +long wxGetUTCTime(); + +/** + Returns the number of milliseconds since GMT 00:00:00 Jan 1st 1970. + + @header{wx/time.h} + + @since 2.9.3 + */ +wxLongLong wxGetUTCTimeMillis(); + +/** + Returns the number of microseconds since GMT 00:00:00 Jan 1st 1970. + + @header{wx/time.h} + + @since 2.9.3 + */ +wxLongLong wxGetUTCTimeUSec(); + //@}