Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

epoch time in c

#include <stdio.h>
#include <time.h>

int main () {
   time_t seconds;

   seconds = time(NULL);
   printf("Hours since January 1, 1970 = %ld
", seconds/3600);
  
   return(0);
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #epoch #time
ADD COMMENT
Topic
Name
7+1 =