#include<time.h>
#include<iostream.h>
struct tm *time(void);
void main(void) {
    time_t ttime = time(NULL);
    struct tm *ltime = time();
    cout << ctime(&ttime);
    cout << asctime(ltime);
}
struct tm *time(void) {
    time_t t = time(NULL);
    return localtime(&t);
}
