This function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).
void GetSystemTime( SYSTEMTIME * lpSystemTime )
EX1
int GetSystemTime_ex1() { SYSTEMTIME sysTime; char lpcstrTime[100]; GetSystemTime(&sysTime); if(systemtime_to_date_str(&sysTime, lpcstrTime)) printf("Today's date & time in your Origin custom date format(1) = \"%s\"\n",lpcstrTime); return 1; }
SetFileTime, FileTimeToSystemTime, SystemTimeToJulianDate
origin.h