/* 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 <time.h>
#include <stdio.h>

int main()
{
   time_t t;
   struct tm *ts;
   t=time(NULL);
   ts=localtime(&t);
   printf("It is %02d/%02d/%04d %02d:%02d",ts->tm_mday,ts->tm_mon+1,1900+ts->tm_year,ts->tm_hour,ts->tm_min);
   return 0;
}
