time
, _time32
, _time64
Gets the system time.
Syntax
time_t time( time_t *destTime ); __time32_t _time32( __time32_t *destTime ); __time64_t _time64( __time64_t *destTime );
Parameters
destTime
Pointer to the storage location for time.
Return value
Returns the time as seconds elapsed since midnight, January 1, 1970, or -1 if there's an error.
Remarks
The time
function returns the number of seconds elapsed since midnight (00:00:00), January 1, 1970, Coordinated Universal Time (UTC), according to the system clock. The return value