The default CalmarendianDate constructor is already an equivalent of the Gregorian date.fromordinal class method. Adding this explicit class method, however, not only allows better completeness of method equivalence, it also allows a single, dynamic "from ordinal" that can take either (any) type of ordinal date reference.
To maintain completeness, we shall also need to add an inverse method:
The default CalmarendianDate constructor is already an equivalent of the Gregorian
date.fromordinal
class method. Adding this explicit class method, however, not only allows better completeness of method equivalence, it also allows a single, dynamic "from ordinal" that can take either (any) type of ordinal date reference.To maintain completeness, we shall also need to add an inverse method: