X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59068d79f7fcc94d320cf41ce1ed7f0a8851b125..b09857ae000a60704207d63290be937584805fb0:/interface/wx/time.h?ds=sidebyside diff --git a/interface/wx/time.h b/interface/wx/time.h index 23db295696..ad833b2021 100644 --- a/interface/wx/time.h +++ b/interface/wx/time.h @@ -18,4 +18,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(); + //@}