]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/time.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Time-related functions.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 /** @addtogroup group_funcmacro_time */
15 Returns the difference between UTC and local time in seconds.
22 Returns the number of seconds since local time 00:00:00 Jan 1st 1970.
24 @see wxDateTime::Now()
28 long wxGetLocalTime();
31 Returns the number of milliseconds since local time 00:00:00 Jan 1st 1970.
33 The use of wxGetUTCTimeMillis() is preferred as it provides a usually
34 (except for changes to the system time) monotonic clock which the local
35 time also changes whenever DST begins or ends.
37 @see wxDateTime::Now(), wxGetUTCTimeMillis(), wxGetUTCTimeUSec()
41 wxLongLong
wxGetLocalTimeMillis();
44 Returns the number of seconds since GMT 00:00:00 Jan 1st 1970.
46 @see wxDateTime::Now()
53 Returns the number of milliseconds since GMT 00:00:00 Jan 1st 1970.
59 wxLongLong
wxGetUTCTimeMillis();
62 Returns the number of microseconds since GMT 00:00:00 Jan 1st 1970.
68 wxLongLong
wxGetUTCTimeUSec();