C++ Builder 參考手冊(cè) ? System::Sysutils ? MSecsToTimeStamp
毫秒轉(zhuǎn)為時(shí)間戳
頭文件:#include <System.SysUtils.hpp>
命名空間:System::Sysutils
函數(shù)原型:
TTimeStamp __fastcall MSecsToTimeStamp(System::Comp MSecs);
參數(shù):
- MSecs:毫秒荤懂,雙精度浮點(diǎn)數(shù) double 類型诉儒;
返回值:
- Sysutils::TTimeStamp 類型的時(shí)間戳魄藕,包含:
? Date:參數(shù) MSecs 毫秒包含的天數(shù)柄错,不到1天等于0,大于等于1天并且小于2天等于1狼渊,……
? Time:參數(shù) MSecs 毫秒去掉整天之后拴念,剩余的毫秒數(shù),是小于1天的毫秒數(shù)春畔; - Sysutils::TTimeStamp 類型的時(shí)間戳主要用于系統(tǒng)內(nèi)部的時(shí)間運(yùn)算脱货,而不是 UNIX 時(shí)間戳;
- 日期時(shí)間轉(zhuǎn) UNIX 時(shí)間戳可以使用 System::Dateutils::DateTimeToUnix律姨;
- UNIX 時(shí)間戳轉(zhuǎn)日期時(shí)間可以使用 System::Dateutils::UnixToDateTime振峻。
相關(guān):
- System::Sysutils::MSecsToTimeStamp
- System::Sysutils::TimeStampToMSecs
- System::Sysutils::DateTimeToTimeStamp
- System::Sysutils::TimeStampToDateTime
- System::Sysutils::TTimeStamp
- System::Sysutils::DateTimeToFileDate
- System::Sysutils::FileDateToDateTime
- System::Sysutils::FileAge
- System::Sysutils::FileGetDate
- System::Sysutils::FileSetDate
- System::Sysutils::DateToStr
- System::Sysutils::TimeToStr
- System::Sysutils::DateTimeToStr
- System::Sysutils::DateTimeToString
- System::Sysutils::FormatDateTime
- System::Sysutils::StrToDate
- System::Sysutils::StrToDateDef
- System::Sysutils::StrToTime
- System::Sysutils::StrToTimeDef
- System::Sysutils::StrToDateTime
- System::Sysutils::StrToDateTimeDef
- System::Sysutils::FloatToDateTime
- System::Sysutils::FormatSettings
- System::Sysutils::TFormatSettings
- System::Sysutils
- System::Ioutils::TFile::GetLastWriteTime
- System::Ioutils::TFile::GetLastAccessTime
- System::Ioutils::TFile::GetCreationTime
- System::Ioutils::TFile::SetLastWriteTime
- System::Ioutils::TFile::SetLastAccessTime
- System::Ioutils::TFile::SetCreationTime
- System::Ioutils
- System::Dateutils::DateTimeToUnix
- System::Dateutils::UnixToDateTime
- System::Dateutils
- System::TDateTime
- System::Comp
- System
C++ Builder 參考手冊(cè) ? System::Sysutils ? MSecsToTimeStamp