J
JC
Is there some portable way to obtain the number of seconds since the
start of January 1st, 1970? I don't have a copy of the C++ standard in
front of me, but C99 states:
[7.23.2.4/2] "The time function determines the current calendar time.
The encoding of the value is unspecified."
I'm assuming C++ didn't introduce any additional restrictions.
And, if there is no portable way, is there some way to check what the
encoding of time() is on the current platform, so I can at least have
some run-time assertions fail if my assumptions are incorrect?
Thanks,
Jason
start of January 1st, 1970? I don't have a copy of the C++ standard in
front of me, but C99 states:
[7.23.2.4/2] "The time function determines the current calendar time.
The encoding of the value is unspecified."
I'm assuming C++ didn't introduce any additional restrictions.
And, if there is no portable way, is there some way to check what the
encoding of time() is on the current platform, so I can at least have
some run-time assertions fail if my assumptions are incorrect?
Thanks,
Jason