// 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 <afxwin.h>

int main()
{
   SYSTEMTIME t;
   GetLocalTime(&t);
   CTime *t2 = new CTime(t);
   printf("%s\n",(LPCTSTR)t2->Format("%a, %d %b %Y %H:%M:%S GMT"));
   delete t2;
   return 0;
}
