home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 February
/
Chip_2004-02_cd1.bin
/
zkuste
/
konfig
/
download
/
msic
/
Help
/
Int
/
MiTeC_Datetime.int
< prev
next >
Wrap
Text File
|
2003-08-26
|
1KB
|
34 lines
{*******************************************************}
{ }
{ MiTeC Datetime Routines }
{ version 1.1 for Delphi 5,6 }
{ }
{ Copyright ⌐ 1997,2002 Michal Mutl }
{ }
{*******************************************************}
{$INCLUDE MITEC_DEF.INC}
unit MiTeC_Datetime;
interface
uses Windows, SysUtils;
function FormatSeconds(TotalSeconds :comp; WholeSecondsOnly: Boolean = True;
DisplayAll: Boolean = False; DTFormat :Boolean = false) :string;
function UTCToDateTime(UTC: DWORD): TDateTime;
function DSTDate2Date(dstDate: TSystemTime; year: word): TDateTime;
function FileTimeToDateTimeStr(FileTime: TFileTime): string;
function FiletimeToDateTime(FT: FILETIME): TDateTime;
function ParseDate(YYYYMMDD: string): TDatetime;
{$IFNDEF D6PLUS}
function DaysInMonth(const AValue: TDateTime): Word;
function EncodeDayOfWeekInMonth(const AYear, AMonth, ANthDayOfWeek,
ADayOfWeek: Word): TDateTime;
{$ENDIF}
implementation