the number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
So, 0 should be represented as "Thu Jan 1 00:00:00 1970"
But in this code
int main() {
time_t t = 0;
printf("%s\n", asctime(localtime(&t)));
}
it outputs : Thu Jan 1 05:30:00 1970
But why ?
man asctime before expecting it to do what you want
why don't you use gmtime instead of localtime?
Обсуждают сегодня