#include #include int main(){ time_t tp; struct tm* stm; time(&tp); printf("Value returned by time(): %d \n",tp); stm = localtime(&tp); printf("Local time: %s", asctime(stm)); stm = gmtime(&tp); printf("GMT time: %s", asctime(stm)); return 0; }