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

int main()
{
   char fnm[33];
   time_t t;
   t=time(NULL);
   strftime(fnm,sizeof(fnm),"%Y%m%d.TXT",localtime(&t));
   printf("%s\n",fnm);
   return 0;
}
