|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--cosmic.util.Date
Class with date methods to convert between Julian day and Gregorian date. Author: James.A.Marshall@imperial.ac.uk
| Constructor Summary | |
private |
Date()
Private constructor for the Date class (objects of class Date should never be constructed) |
| Method Summary | |
static int |
getGregorianDate(int julianDay)
Converts Julian Day into Gregorian Date integer in format "yyyymmdd" |
static int |
getJulianDay(int gregorianDate)
Converts Gregorian Date into Julian Day |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private Date()
| Method Detail |
public static int getJulianDay(int gregorianDate)
throws java.lang.IllegalArgumentException
gregorianDate - ("yyyymmdd")
java.lang.IllegalArgumentException - if gregorianDate is invalidpublic static int getGregorianDate(int julianDay)
julianDay - (>= 0)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||