Thank you so much!
I put my code here to help others who need this two.
char date_buff[40];
time_t time_value = time(NULL);
struct tm* my_tm = localtime(&time_value);
strftime(date_buff,...
Type: Posts; User: bbebfe
Thank you so much!
I put my code here to help others who need this two.
char date_buff[40];
time_t time_value = time(NULL);
struct tm* my_tm = localtime(&time_value);
strftime(date_buff,...
This is my code below:
time_t now = time(NULL);
printf("%s\n", ctime(&now));
Its output is something like "Sat Dec 18 12:38:38 1971". I only want the date portion to be outputted, i.e. Dec...