[Overview][Constants][Procedures and functions] |
Determine whether a time is PM or AM.
Source position: dateutil.inc line 83
function IsPM( |
const AValue: TDateTime |
):Boolean; |
AValue |
|
Time to check. |
Trueif the time part of AValueis PM (afternoon).
IsPMreturns Trueif the time part of AValueis later then 12:00 (PM, or afternoon).
|
Extract the year from a given date. |
|
|
Determine whether a date is in a leap year. |
|
|
Check whether a given date is today. |
|
|
Check if two date/time indications are the same day. |
Program Example4; { This program demonstrates the IsPM function } Uses SysUtils,DateUtils; Begin Writeln('Current time is PM : ',IsPM(Now)); End.