Comparing time_t values using comparison operators
I have 2 time_t values and I want to find out which one is greater. time_t is internally __int64 on my platform. Can I use < , > and == operators to compare the values? I don't want to know the difference between the two time values. The code will just run on Windows, so I don't care about portability. Is it correct to compare the values in this way? According to section 7.27.1(3) of the C standard (which the C++ standard refers to in this case) time_t is a real type , which is defined in 6.2.5(17) as either integer or floating type. As long as you don't explicitly assume integers (i.e. by