public class FitsDate extends Object
| Constructor and Description |
|---|
FitsDate(String dStr)
Convert a FITS date string to a Java
Date object. |
| Modifier and Type | Method and Description |
|---|---|
static void |
autotest() |
static String |
getFitsDateString()
Return the current date in FITS date format
|
static String |
getFitsDateString(Date epoch)
Create FITS format date string Java Date object.
|
static String |
getFitsDateString(Date epoch,
boolean timeOfDay)
Create FITS format date string.
|
static void |
main(String[] args) |
static void |
testArgs(String[] args) |
Date |
toDate()
Get a Java Date object corresponding to this
FITS date.
|
String |
toString() |
public FitsDate(String dStr) throws FitsException
Date object.dStr - the FITS dateFitsException - if dStr does not
contain a valid FITS date.public Date toDate()
public static String getFitsDateString()
public static String getFitsDateString(Date epoch)
epoch - The epoch to be converted to FITS format.public static String getFitsDateString(Date epoch, boolean timeOfDay)
epoch - The epoch to be converted to FITS format.timeOfDay - Should time of day information be included?public static void testArgs(String[] args)
public static void autotest()
public static void main(String[] args)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.