JCL Help:CenturyOfDate
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: CenturyOfDate Function
Search in JCL Help
Search in all projects
Summary
Extracts the century from a DateTime.
Pascal
function CenturyOfDate(const DateTime: TDateTime): Integer;
Parameters
Parameters | Description |
const DateTime: TDateTime | The DateTime from which to extract the century. |
Return Value
The century of the specified DateTime.
Description
CenturyOfDate returns the century of the specified DateTime. For example: if D is assumed to be StrToDateTime('2/17/2000 12:37:21 PM'); then CenturyOfDate(D) returns 21
See Also
CenturyBaseYear DayOfDate MonthOfDate YearOfDate
About
Unit
Donator
Anthony Steele
Notes
The specified DateTime is assumed to be valid (with JCLDate negative years and dates > year 9999 are valid).
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page