libtime++: Date and time calculation
◆
now()
TAbsoluteTime
libtime::now
(
)
return system time
Definition at line
44
of file
now.cc
.
Referenced by
main()
.
45
{
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);
55
return
(thetime);
56
}
// now()
Here is the caller graph for this function:
libtime
Generated on Mon Aug 21 2023 17:36:11 for libtime++: Date and time calculation by
1.8.14