I am only new to <time.h> and ask a question regarding time_t and time() .
I read the time () function registered as follows:
time_t time (time_t * timer); Get current time
Get the current calendar time as a time_t object.
The function returns this value, and if the argument is not a null pointer, the value is also set to the object indicated by the timer.
The documentation does not mention the time zone.
So for the following C ++ code:
time_t t = time (NULL);
If two machines, one in the US and one in the UK, simultaneously call the time(NULL) function, will the returned time_t objects be identical?
Will time () return a value regardless of time zone?
source share