17 #define EPOCH_FILE_TIME 116444736000000000
22 #include <wx/datetime.h>
36 GetSystemTimeAsFileTime( &ft );
37 lv.LowPart = ft.dwLowDateTime;
38 lv.HighPart = ft.dwHighDateTime;
40 v64 = lv.QuadPart - EPOCH_FILE_TIME;
44 gettimeofday( &tv,
NULL );
46 t = tv.tv_sec * 1000 + tv.tv_usec / 1000;
59 wxDateTime wxWidDate(*date);
60 strDate = FMT(
"%02d %s %04d %02d:%02d:%02d", wxWidDate.GetDay(), wxDateTime::GetMonthName(wxWidDate.GetMonth(), wxDateTime::Name_Abbr).c_str(), wxWidDate.GetYear(),
61 wxWidDate.GetHour(), wxWidDate.GetMinute(), wxWidDate.GetSecond());
interfaces of string function
std::string datetostring(struct tm *date)
date -> string
long long getcurrenttime()
gets current time in miliseconds