摘要:
在vc中实现time_t和SYSTEMTIME 与delphi中的TDateTime的转换。delphi中的TDateTime其实就是一个double型。TDateTime TimetToDateTime(time_t t){double result=(double)t / 86400.0 + 25569;return TDateTime(result);}time_t DateTimeToTimet(TDateTime dt){return time_t((dt-25569) * 86400.0);}void DateTimeToSystemTime(TDateTime dt, LPSYS 阅读全文