Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c get time

/* localtime example */
#include <stdio.h>
#include <time.h>

int main ()
{
  time_t rawtime;
  struct tm * timeinfo;

  time ( &rawtime );
  timeinfo = localtime ( &rawtime );
  printf ( "Current local time and date: %s", asctime (timeinfo) );
  
  return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time
ADD COMMENT
Topic
Name
9+8 =