function DateTimeToFileDate(DateTime: TDateTime):LongInt; |
将DateTime类型转换为文件日期。 |
function DateTimeToStr( DateTime: TDateTime):; |
构造DateTime的字符串表示形式 |
function DateTimeToStr(DateTime: TDateTime; const FormatSettings: TFormatSettings):; |
构造DateTime的字符串表示形式 |
procedure DateTimeToString(out Result: ;const FormatStr: ;const DateTime: TDateTime); |
构造DateTime的字符串表示形式 |
procedure DateTimeToString(out Result: ; const FormatStr: ; const DateTime: TDateTime; const FormatSettings: TFormatSettings); |
构造DateTime的字符串表示形式 |
procedure DateTimeToSystemTime(DateTime: TDateTime; out SystemTime: TSystemTime); |
将DateTime转换为系统时间 |
function DateTimeToTimeStamp( DateTime: TDateTime):TTimeStamp; |
将DateTime转换为时间戳 |
function DateToStr(Date: TDateTime):; |
构造日期的字符串表示形式 |
function DateToStr(Date: TDateTime; const FormatSettings: TFormatSettings):; |
构造日期的字符串表示形式 |
function Date: TDateTime; |
获取当前日期 |
function DayOfWeek(DateTime: TDateTime):Integer; |
获取星期几 |
procedure DecodeDate(Date: TDateTime; out Year: Word; out Month: Word; out Day: Word); |
将DateTime解码为年月日 |
procedure DecodeTime(Time: TDateTime; out Hour: Word; out Minute: Word; out Second: Word; out MilliSecond: Word); |
将DateTime解码为小时,分钟和秒 |
function EncodeDate(Year: Word; Month: Word; Day: Word):TDateTime; |
将年,日和月编码为DateTime |
function EncodeTime(Hour: Word; Minute: Word; Second: Word; MilliSecond: Word):TDateTime; |
将小时,分钟和秒编码为DateTime |
function FormatDateTime(const FormatStr: ; DateTime: TDateTime):; |
返回DateTime的字符串表示形式 |
function FormatDateTime(const FormatStr: ; DateTime: TDateTime; const FormatSettings: TFormatSettings):; |
返回DateTime的字符串表示形式 |
function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer = 1):TDateTime; |
每月加1 |
function IsLeapYear(Year: Word):Boolean; |
确定年份是否为leap年 |
function MSecsToTimeStamp(MSecs: Comp):TTimeStamp; |
将毫秒数转换为时间戳 |
function Now: TDateTime; |
获取当前日期和时间 |
function StrToDateTime(const S:):TDateTime; |
将字符串转换为DateTime |
function StrToDateTime(const s: ShortString; const FormatSettings: TFormatSettings):TDateTime; |
将字符串转换为DateTime |
function StrToDateTime(const s: AnsiString; const FormatSettings: TFormatSettings):TDateTime; |
将字符串转换为DateTime |
function StrToDate(const S: ShortString):TDateTime; |
将字符串转换为日期 |
function StrToDate(const S: Ansistring):TDateTime; |
将字符串转换为日期 |
function StrToDate(const S: ShortString; separator: Char):TDateTime; |
将字符串转换为日期 |
function StrToDate(const S: AnsiString; separator: Char):TDateTime; |
将字符串转换为日期 |
function StrToDate(const S: ShortString; const useformat: ; separator: Char):TDateTime; |
将字符串转换为日期 |
function StrToDate(const S: AnsiString; const useformat: ; separator: Char):TDateTime; |
将字符串转换为日期 |
function StrToDate(const S: PChar; Len: Integer; const useformat: ; separator: Char = #0):TDateTime; |
将字符串转换为日期 |
function StrToTime(const S: Shortstring):TDateTime; |
将字符串转换为时间 |
function StrToTime(const S: Ansistring):TDateTime; |
将字符串转换为时间 |
function StrToTime(const S: ShortString; separator: Char):TDateTime; |
将字符串转换为时间 |
function StrToTime(const S: AnsiString; separator: Char):TDateTime; |
将字符串转换为时间 |
function StrToTime(const S: ; FormatSettings: TFormatSettings):TDateTime; |
将字符串转换为时间 |
function StrToTime(const S: PChar; Len: Integer; separator: Char = #0):TDateTime; |
将字符串转换为时间 |
function SystemTimeToDateTime(const SystemTime: TSystemTime):TDateTime; |
将系统时间转换为日期时间 |
function TimeStampToDateTime(const TimeStamp: TTimeStamp):TDateTime; |
将时间戳转换为DateTime |
function TimeStampToMSecs(const TimeStamp: TTimeStamp):comp; |
将时间戳转换为毫秒数 |
function TimeToStr(Time: TDateTime):; |
返回时间的字符串表示形式 |
function TimeToStr(Time: TDateTime; const FormatSettings: TFormatSettings):; |
返回时间的字符串表示形式 |
function Time: TDateTime; |
获取当前时间 |