Representation:
<!-- url attribute in the calendarSpec element is needed for FieldsToGranule and GranuleToFields implementation -->
... <!-- see the design decision about this representation of regular mappings in Calendar spec. --> <granularity name = "dayHundreth" > <regularMapping from = "second" conversionFactor = "864" anchor = "0" anchorGran = "second" /> </granularity>
...
<!-- url pointing to a class containing all of the methods stated, please see another way to represent a granularity declaration with an irregular mapping. --> < granularity name = "month" > < irregularMapping from = "day" url = ".../classname.class"> < function name = "gregCastMonthToDay" /> < function name = "gregCastDayToMonth" /> < function name = "gregScaleMonthToDay" /> < /irregularMapping > < /granularity >
|
When analyzing examples, note that some of the structure is changed. I left the above representation untouched to see the differences.
See an example of Gregorian Calendar.
See an example of Astronomy Calendar.
See also a discussion on improving descriptiveness of this specification file.