How is time_t defined? [duplicate]
Possible Duplicate:
What is ultimately a time_t typedef to?
In /usr/include/time.h time_t is defined as typedef __time_t time_t
. What does this mean exactly? Is the type of time_t compiler specific? I have heard it is by default a long
value.
The Standard says:
7.23.1
The types declared are [...] time_t [...] which are arithmetic types capable of representing times
You just need to retain that it is an arithmetic type: you can perform arithmetic with values of time_t
type.
精彩评论