wasmer/emtests/localtime.c

21 lines
357 B
C
Raw Normal View History

2018-12-07 22:55:55 +00:00
#include <stdio.h>
#include <time.h>
int main (int argc, char *argv[]) {
printf("Hello wasmer!\n");
time_t rawtime;
struct tm *info;
char buffer[80];
time( &rawtime );
info = localtime( &rawtime );
printf("Almost!\n");
printf("Current local time and date: %s\n", asctime(info));
printf("Done!\n");
return(0);
}