IsPM
Determine whether a time is PM or AM.
Declaration
Source position: dateutil.inc line 84
function IsPM(const AValue: TDateTime) : Boolean;
Description
IsPM returns True if the time part of AValue is later then 12:00 (PM, or afternoon).
See also
Name | Description |
---|---|
IsInLeapYear | Determine whether a date is in a leap year. |
IsSameDay | Check if two date/time indications are the same day. |
IsToday | Check whether a given date is today. |
YearOf | Extract the year from a given date. |
Example
Program Example4;
{ This program demonstrates the IsPM function }
Uses SysUtils,DateUtils;
Begin
Writeln('Current time is PM : ',IsPM(Now));
End.