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

Unit
QESBPCSDateTime

Declaration
Function OptThisDay: Integer;

Description
This Integer routine is faster than ThisDay.

Category
Date/Time Conversion Routines

Implementation

function OptThisDay: Integer;
{$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