Functions | |
int | wxGetTimeZone () |
Returns the difference between UTC and local time in seconds. | |
long | wxGetLocalTime () |
Returns the number of seconds since local time 00:00:00 Jan 1st 1970. | |
wxLongLong | wxGetLocalTimeMillis () |
Returns the number of milliseconds since local time 00:00:00 Jan 1st 1970. | |
long | wxGetUTCTime () |
Returns the number of seconds since GMT 00:00:00 Jan 1st 1970. | |
wxLongLong | wxGetUTCTimeMillis () |
Returns the number of milliseconds since GMT 00:00:00 Jan 1st 1970. | |
wxLongLong | wxGetUTCTimeUSec () |
Returns the number of microseconds since GMT 00:00:00 Jan 1st 1970. | |
long wxGetLocalTime | ( | ) |
Returns the number of seconds since local time 00:00:00 Jan 1st 1970.
Include file:
#include <wx/time.h>
wxLongLong wxGetLocalTimeMillis | ( | ) |
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.
Include file:
#include <wx/time.h>
int wxGetTimeZone | ( | ) |
Returns the difference between UTC and local time in seconds.
Include file:
#include <wx/time.h>
long wxGetUTCTime | ( | ) |
Returns the number of seconds since GMT 00:00:00 Jan 1st 1970.
Include file:
#include <wx/time.h>
wxLongLong wxGetUTCTimeMillis | ( | ) |
Returns the number of milliseconds since GMT 00:00:00 Jan 1st 1970.
Include file:
#include <wx/time.h>
wxLongLong wxGetUTCTimeUSec | ( | ) |
Returns the number of microseconds since GMT 00:00:00 Jan 1st 1970.
Include file:
#include <wx/time.h>