convert a double in Julian date format to a system time struct
BOOL JulianDateToSystemTime(const double* pdDate, SYSTEMTIME *pSysTime, double *pdMillSec = NULL, int nRound = -1)
True for success, false if failed to convert like if input double is not in valid range for Julian date
EX1
void JulianDateToSystemTime_Ex1() { SYSTEMTIME st , stCheck ; char lpcstrTime[100]; GetSystemTime(&st); double dDate ; SystemTimeToJulianDate(&dDate, &st); JulianDateToSystemTime(&dDate , &stCheck); if(systemtime_to_date_str(&stCheck, lpcstrTime)) printf("Today's date & time in your Origin custom date format(1) = \"%s\"\n",lpcstrTime); }
SystemTimeToJulianDate
origin.h