Answers for "get epoch in ns c"

C
0

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\n", seconds/3600);
  
   return(0);
}
Posted by: Guest on June-11-2021

Code answers related to "C"

Browse Popular Code Answers by Language