Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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);
 
PREVIOUS NEXT
Tagged: #language #function
ADD COMMENT
Topic
Name
5+1 =