public class JulianDate extends java.lang.Object implements java.lang.Comparable<JulianDate>
Constructor and Description |
---|
JulianDate(int iJulian)
Create JulianDate from an Integer Julian Date Instance
|
Modifier and Type | Method and Description |
---|---|
JulianDate |
addBusDays(int iDays,
java.lang.String strCalendarSet)
Add the given Number of Business Days and return a new JulianDate Instance
|
JulianDate |
addDays(int iDays)
Add the given Number of Days and return a JulianDate Instance
|
JulianDate |
addMonths(int iNumMonths)
Add the given Number of Months and return a New JulianDate Instance
|
JulianDate |
addTenor(java.lang.String strTenorIn)
Add the tenor to the JulianDate to create a new date
|
JulianDate |
addTenorAndAdjust(java.lang.String strTenor,
java.lang.String strCalendarSet)
Add the Tenor to the JulianDate and Adjust it to create a new Instance
|
JulianDate |
addYears(int iNumYears)
Add the given Number of Years and return a new JulianDate Instance
|
int |
compareTo(JulianDate dtOther) |
int |
daysDiff(JulianDate dt)
Difference in Days between the Current and the Input Dates
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
julian()
Return the Integer Julian Date
|
JulianDate |
nextBondFuturesIMM(int iNumRollMonths,
java.lang.String strCalendar)
Generate the First Bond Futures IMM Date from this JulianDate according to the specified Calendar
|
JulianDate |
nextCreditIMM(int iNumRollMonths)
Generate the First Credit IMM roll date from this JulianDate
|
JulianDate |
nextRatesFuturesIMM(int iNumRollMonths)
Generate the First Rates Futures IMM Date from this JulianDate
|
JulianDate |
subtractBusDays(int iDays,
java.lang.String strCalendarSet)
Subtract the given Number of Business Days and return a new JulianDate Instance
|
JulianDate |
subtractDays(int iDays)
Subtract the given Number of Days and return the JulianDate Instance
|
JulianDate |
subtractTenor(java.lang.String strTenorIn)
Subtract the tenor to the JulianDate to create a new date
|
JulianDate |
subtractTenorAndAdjust(java.lang.String strTenor,
java.lang.String strCalendarSet)
Subtract the tenor to the JulianDate to create a new business date
|
java.lang.String |
toOracleDate()
Return a Trigram Representation of the Date
|
java.lang.String |
toString() |
java.lang.String |
toYYYYMMDD(java.lang.String strDelimIn)
Return a Representation of Date as YYYYMMDD
|
public JulianDate(int iJulian)
iJulian
- Julian Date Integer Instancepublic int julian()
public JulianDate addDays(int iDays)
iDays
- Number of Days to be addedpublic JulianDate subtractDays(int iDays)
iDays
- Number of days to be subtractedpublic JulianDate addBusDays(int iDays, java.lang.String strCalendarSet)
iDays
- Number of Days to be subtractedstrCalendarSet
- String representing the Calendar Set containing the Business Dayspublic JulianDate subtractBusDays(int iDays, java.lang.String strCalendarSet)
iDays
- Number of Days to be subtractedstrCalendarSet
- String representing the Calendar Set containing the Business Dayspublic JulianDate addYears(int iNumYears)
iNumYears
- Number of Years to be addedpublic JulianDate addMonths(int iNumMonths)
iNumMonths
- Number of Months to be addedpublic JulianDate nextRatesFuturesIMM(int iNumRollMonths)
iNumRollMonths
- Number of Months to Rollpublic JulianDate nextBondFuturesIMM(int iNumRollMonths, java.lang.String strCalendar)
iNumRollMonths
- Number of Months to RollstrCalendar
- Holiday Calendarpublic JulianDate nextCreditIMM(int iNumRollMonths)
iNumRollMonths
- Number of Months to Rollpublic JulianDate addTenor(java.lang.String strTenorIn)
strTenorIn
- String representing the Input Tenor to addpublic JulianDate addTenorAndAdjust(java.lang.String strTenor, java.lang.String strCalendarSet)
strTenor
- The TenorstrCalendarSet
- The Holiday Calendar Setpublic JulianDate subtractTenor(java.lang.String strTenorIn)
strTenorIn
- String representing the tenor to addpublic JulianDate subtractTenorAndAdjust(java.lang.String strTenor, java.lang.String strCalendarSet)
strTenor
- The TenorstrCalendarSet
- The Holiday Calendar Setpublic int daysDiff(JulianDate dt) throws java.lang.Exception
dt
- Input Datejava.lang.Exception
- Thrown if Input Date is Invalidpublic java.lang.String toOracleDate()
public java.lang.String toYYYYMMDD(java.lang.String strDelimIn)
strDelimIn
- Field Delimiterpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(JulianDate dtOther)
compareTo
in interface java.lang.Comparable<JulianDate>