ThisDay Function
Returns the current Day - from Today's Date.

Unit
QESBPCSDateTime

Declaration
Function ThisDay: Word;

Description
For a faster Integer routine see OptThisDay.

Category
Date/Time Conversion Routines

Implementation

function ThisDay: Word;
{$IFDEF MSWINDOWS}
var
     ST: TSystemTime;
begin
     Windows.GetLocalTime (ST);
     Result := ST.wDay;
end;
{$ENDIF}
{$IFDEF LINUX}
var
     T: TTime_T;
     UT: TUnixTime;
begin
     __time (@T);
     localtime_r (@T, UT);
     Result := UT.tm_mday;
End;


HTML generated by Time2HELP
http://www.time2help.com