]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/time.h
a6b821648d3e5c1707cf31f055e428eaf2b1fd86
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Time-related functions.
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 /** @addtogroup group_funcmacro_time */
14 Returns the difference between UTC and local time in seconds.
21 Returns the number of seconds since local time 00:00:00 Jan 1st 1970.
23 @see wxDateTime::Now()
27 long wxGetLocalTime();
30 Returns the number of milliseconds since local time 00:00:00 Jan 1st 1970.
32 The use of wxGetUTCTimeMillis() is preferred as it provides a usually
33 (except for changes to the system time) monotonic clock which the local
34 time also changes whenever DST begins or ends.
36 @see wxDateTime::Now(), wxGetUTCTimeMillis(), wxGetUTCTimeUSec()
40 wxLongLong
wxGetLocalTimeMillis();
43 Returns the number of seconds since GMT 00:00:00 Jan 1st 1970.
45 @see wxDateTime::Now()
52 Returns the number of milliseconds since GMT 00:00:00 Jan 1st 1970.
58 wxLongLong
wxGetUTCTimeMillis();
61 Returns the number of microseconds since GMT 00:00:00 Jan 1st 1970.
67 wxLongLong
wxGetUTCTimeUSec();