Quite clever nodeshell I found linked to "32-bit era".

Assuming time_t is a signed int, this can be determined as such:
#include <stdio.h>
#include <limits.h>
#include <time.h>
int main(){time_t t=INT_MAX;return printf("%s",ctime(&t))*0;}

On my system, x86 Linux with glibc, this is Monday January 18, 2038 at 10:14:07 PM.

(if time_t is unsigned for some silly reason, replace INT_MAX with ~0, of course. yerricde tells me it's unsigned on DJGPP.)

Log in or registerto write something here or to contact authors.