Search:

Type: Posts; User: bbebfe

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    7,348

    Thank you so much! I put my code here to help...

    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,...
  2. Replies
    2
    Views
    7,348

    Help, how to distill date from time_t value?

    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...
Results 1 to 2 of 2