IsPM function
Determine whether a time is PM or AM.
Declaration
function IsPM(const AValue: TDateTime): BooleanArguments
AValue | Time to check. |
Function result
True if the time part of
AValue is PM (afternoon).Description
IsPM returns
True if the time part of
AValue is later then 12:00 (PM, or afternoon).See also
Example: ex4
Program Example4;
{ This program demonstrates the IsPM function }
Uses SysUtils,DateUtils;
Begin
Writeln('Current time is PM : ',IsPM(Now));
End.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
