public class FitsDate
extends java.lang.Object
| Constructor and Description |
|---|
FitsDate(java.lang.String dStr)
Convert a FITS date string to a Java
Date object. |
| Modifier and Type | Method and Description |
|---|---|
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() |
public FitsDate(java.lang.String dStr)
throws FitsException
Date object.dStr - the FITS dateFitsException - if dStr does not
contain a valid FITS date.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.Objectpublic static void testArgs(java.lang.String[] args)
public static void autotest()
public static void main(java.lang.String[] args)