Recent Changes - Search:

About

Users

Developers

edit SideBar

CalendarSpecification

Representation:

       <!-- url attribute in the calendarSpec element is needed for
              FieldsToGranule and GranuleToFields implementation -->

    <calendarSpec underlyingGranularity = "second" url = "*/classname">

       ...
       <!-- 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 >
    </calendarSpec>

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.

Edit - History - Print - Recent Changes - Search
Page last modified on April 14, 2009, at 08:02 PM