Sign in Join
FPDoc Onlineexperiment

IsPM function

In unit DateUtils

Determine whether a time is PM or AM.

Declaration

pascal
function IsPM(const AValue: TDateTime): Boolean

Arguments

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

pascal
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.