Return to Snippet

Revision: 58523
at July 20, 2012 05:21 by mlecho


Initial Code
#import <time.h>
time_t currentTime = time(NULL);
struct tm timeStruct;
localtime_r(&currentTime, &timeStruct);
char buffer[20];
strftime(buffer, 20, "%d-%m-%Y %H:%M", &timeStruct);

Initial URL


Initial Description


Initial Title
Date format in C

Initial Tags
date, c

Initial Language
C