Time and Date Functions Flashcards

1
Q

time2 -time1 in seconds (double)

A

difftime(time2 ,time1 )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

arithmetic types representing times

A

clock_t,time_t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

structure type for calendar time comps

A

struct tm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

tm_sec

A

seconds after minute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

tm_min

A

minutes after hour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

tm_hour

A

hours since midnight

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

tm_mday

A

day of month

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

tm_mon

A

months since January

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

tm_year

A

years since 1900

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

tm_wday

A

days since Sunday

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

tm_yday

A

days since January 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

tm_isdst

A

Daylight Savings Time flag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

convert local time to calendar time

A

mktime(tp)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

convert time in tp to string

A

asctime(tp)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

convert calendar time in tp to local time

A

ctime(tp)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

convert calendar time to GMT

A

gmtime(tp)

17
Q

convert calendar time to local time

A

localtime(tp)

18
Q

tp

A

a pointer to a structure of type tm

19
Q
A