[Overview][Constants][Procedures and functions] | Reference for unit 'dateutils' (#rtl) |
Extract the time part from a DateTime indication.
Source position: dateutil.inc line 76
function TimeOf( |
const AValue: TDateTime |
):TDateTime; |
AValue |
|
Datetime to extract time from |
Time part of AValue.
TimeOf extracts the time part from AValue and returns the result.
Since the TDateTime is actually a double with the time part encoded in the fractional part, this operation corresponds to a call to Frac.
|
Extract the date part from a DateTime indication. |
|
|
Extract the year from a given date. |
|
|
Extract the month from a given date. |
|
|
Extract the day (of month) part from a DateTime value |
|
|
Extract the hour part from a DateTime value. |
|
|
Extract the minute part from a DateTime value. |
|
|
Extract the second part from a DateTime value. |
|
|
Extract the millisecond part from a DateTime value. |
Program Example2; { This program demonstrates the TimeOf function } Uses SysUtils,DateUtils; Begin Writeln('Time is : ',TimeToStr(TimeOf(Now))); End.
No notes exist for this page yet.