36 #define TF_NOW_CC_VERSION \ 46 std::time_t nowtime=std::time(NULL);
47 std::tm *nowtm=std::localtime(&nowtime);
48 int year=nowtm->tm_year+1900;
49 int month=nowtm->tm_mon+1;
50 int day=nowtm->tm_mday;
51 int hour=nowtm->tm_hour;
52 int minute=nowtm->tm_min;
53 int second=nowtm->tm_sec;
54 TAbsoluteTime thetime(year, month, day, hour, minute, second);
60 std::time_t nowtime=std::time(NULL);
61 std::tm *nowtm=std::gmtime(&nowtime);
62 int year=nowtm->tm_year+1900;
63 int month=nowtm->tm_mon+1;
64 int day=nowtm->tm_mday;
65 int hour=nowtm->tm_hour;
66 int minute=nowtm->tm_min;
67 int second=nowtm->tm_sec;
68 TAbsoluteTime thetime(year, month, day, hour, minute, second);
TAbsoluteTime utc()
return system time in UTC
TAbsoluteTime now()
return system time
class to contain absolute times