Contact: aviboots(AT)netvision.net.il
39,894 questions
51,825 answers
573 users
#include <time.h> #include <stdio.h> int main(void) { char s[30]; struct tm tm = *localtime(&(time_t){time(NULL)}); asctime_s(s, sizeof s, &tm); printf("%s", s); return 0; } /* run: Wed Aug 24 17:20:49 2016 */