public class DayCountAndCalendarAPI
extends java.lang.Object
DayCountAndCalendarAPI demonstrates Day-count and Calendar API FUnctionality. It does the following:
- Get all the holiday locations in CreditAnalytics, and all the holidays in the year according the
calendar set.
- Get all the week day/weekend holidays in the year according the calendar set.
- Calculate year fraction between 2 dates according to semi-annual, Act/360, and USD calendar.
- Adjust the date FORWARD according to the USD calendar.
- Roll to the PREVIOUS date according to the USD calendar.