[ create a new paste ] login | about

Link: http://codepad.org/IupKq7kZ    [ raw code | output | fork ]

kamarakay2000 - C, pasted on Jul 27:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <time.h>
int main()
{
    time_t now;
    struct tm *right_now;
    time(& now);
    right_now = localtime(&now);
    printf("Today is %d %d at %d:%d\n", right_now->tm_mon,right_now->tm_mday,right_now->tm_hour,right_now->tm_min);       
    return(0);
}


Output:
1
Today is 6 27 at 16:23


Create a new paste based on this one


Comments: