Get file last write time as Julian date value
BOOL get_file_last_write_time_as_julian( LPCSTR lpcszFile, double * lpdLastWriteTime )
TRUE if Success, otherwise FALSE.
EX1
//the file test.txt must exist in temp folder path void get_file_last_write_time_as_julian_Ex1() { char szTemp[MAXFULLPATH]; GetTempPath(MAXFULLPATH, szTemp); // Get temp folder path. string strFile = szTemp + "\\test.txt"; double dLastWriteTime; bool bFlag = get_file_last_write_time_as_julian(strFile, &dLastWriteTime); if(!bFlag) printf("failed to get file's last write time"); else out_str("the file's last write time is "+get_date_str(dLastWriteTime, LDF_SHORT_AND_HHMM_SEPARCOLON)); }
GetTempPath, get_date_str
origin.h