JCL Help:CenturyBaseYear

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Gives the year "00" of the century specified by DateTime.


Pascal

 function CenturyBaseYear(const DateTime: TDateTime): Integer;


Parameters

Parameters Description
const DateTime: TDateTime The DateTime from which to extract the year "00" of the century.


Return Value

The year "00" of the century of the specified DateTime.


Description

CenturyBaseYear returns the year "00" of the century specified by DateTime. For example: if D is assumed to be StrToDateTime('2/17/2000 12:37:21 PM'); then CenturyBaseYear(D) returns 2000.


See Also

CenturyOfDate DayOfDate MonthOfDate YearOfDate


About

Unit

JclDateTime


Donator

Marcel van Brakel


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