0

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.

Community
  • 1
  • 1
drox
  • 7,523
  • 4
  • 23
  • 34

1 Answers1

1

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.

pmg
  • 106,608
  • 13
  • 126
  • 198