|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nom.tam.fits.FitsDate
public class FitsDate
Constructor Summary | |
---|---|
FitsDate(java.lang.String dStr)
Convert a FITS date string to a Java Date object. |
Method Summary | |
---|---|
static void |
autotest()
|
static java.lang.String |
getFitsDateString()
Return the current date in FITS date format |
static java.lang.String |
getFitsDateString(java.util.Date epoch)
Create FITS format date string Java Date object. |
static java.lang.String |
getFitsDateString(java.util.Date epoch,
boolean timeOfDay)
Create FITS format date string. |
static void |
main(java.lang.String[] args)
|
static void |
testArgs(java.lang.String[] args)
|
java.util.Date |
toDate()
Get a Java Date object corresponding to this FITS date. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FitsDate(java.lang.String dStr) throws FitsException
Date
object.
dStr
- the FITS date
FitsException
- if dStr
does not
contain a valid FITS date.Method Detail |
---|
public java.util.Date toDate()
public static java.lang.String getFitsDateString()
public static java.lang.String getFitsDateString(java.util.Date epoch)
epoch
- The epoch to be converted to FITS format.public static java.lang.String getFitsDateString(java.util.Date epoch, boolean timeOfDay)
epoch
- The epoch to be converted to FITS format.timeOfDay
- Should time of day information be included?public java.lang.String toString()
toString
in class java.lang.Object
public static void testArgs(java.lang.String[] args)
public static void autotest()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |