/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <time.h>

int main()
{
    time_t t;
    t = time(NULL);
    printf("now = %s\n", ctime(&t));
    t = 2147483647;
    printf("max = %s\n", ctime(&t));
    t = t + 1;
    printf("max+1 = %s\n", ctime(&t));
    printf("%d\n", t);
    return 0;
}
