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 String |
getFitsDateString() |
static String |
getFitsDateString(Date epoch) |
static String |
getFitsDateString(Date epoch,
boolean timeOfDay) |
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 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 Date toDate()
Copyright © 1996–2016 nom-tam-fits. All rights reserved.