Answers for "c language time() function"

C
2

c language time() function

/*
This function returns the time since 00:00:00 UTC, January 1, 
1970 (Unix timestamp) in seconds
*/
#include <time.h>

time_t now = time(0);
  
// Or
time_t now;
time(&now);
Posted by: Guest on March-27-2022

Code answers related to "C"

Browse Popular Code Answers by Language