JulianCalendar: ToFourDigitYear

ToFourDigitYear

Converts the specified year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century.



 Public Function ToFourDigitYear(
	  ByVal Year As Long ) As Long

Parameters

Year
[ByVal] Long. A two-digit or four-digit integer that represents the year to convert.

Return Values

Long -  A 4-digit year in the specific calendar.

Remarks

A normal way of dealing with years is by refering to them as a 2-digit value. This is evident in the Gregorian calendar system. The year 2005 may be referenced as 05 (pronounced oh-five). When converting a 2-digit year to a 4-digit the century is unknown. 05 could be 2005 or 1905. This property gives the calendar a rule to follow when converting 2-digit years to 4-digit.

A max year of 2029 will cause a minimum year of 1930. These two years represent 100 years which 2-digit years will fall. 00-99 will fall within 1930-2029.

See Also

Project CorLib Overview

Class JulianCalendar Overview