/ Published in: C
Expand |
Embed | Plain Text
#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);
You need to login to post a comment.
