mlecho on 07/20/12
Last Edited at 07/20/12 05:21am
#import <time.h>time_t currentTime = time(NULL);struct tm timeStruct;localtime_r(¤tTime, &timeStruct);char buffer[20];strftime(buffer, 20, "%d-%m-%Y %H:%M", &timeStruct);
Report this snippet Tweet
Comment:
You need to login to post a comment.