#include #include int main(void) { time_t now; char *time_str; now = time(NULL); if (now == (time_t)(-1)) { perror("time"); return 1; } time_str = ctime(&now); if (time_str == NULL) { perror("ctime"); return 1; } printf("Content-Type: text/plain\n"); printf("\n"); printf("%s", time_str); return 0; }