Time and Date Functions Flashcards
1
Q
time2 -time1 in seconds (double)
A
difftime(time2 ,time1 )
2
Q
arithmetic types representing times
A
clock_t,time_t
3
Q
structure type for calendar time comps
A
struct tm
4
Q
tm_sec
A
seconds after minute
5
Q
tm_min
A
minutes after hour
6
Q
tm_hour
A
hours since midnight
7
Q
tm_mday
A
day of month
8
Q
tm_mon
A
months since January
9
Q
tm_year
A
years since 1900
10
Q
tm_wday
A
days since Sunday
11
Q
tm_yday
A
days since January 1
12
Q
tm_isdst
A
Daylight Savings Time flag
13
Q
convert local time to calendar time
A
mktime(tp)
14
Q
convert time in tp to string
A
asctime(tp)
15
Q
convert calendar time in tp to local time
A
ctime(tp)