Package nom.tam.fits
Class FitsDate
java.lang.Object
nom.tam.fits.FitsDate
- All Implemented Interfaces:
- Comparable<FitsDate>
ISO timestamp support for FITS headers. Such timestamps are used with 
DATE style header keywords, such
 as DATE-OBS or DATE-END.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanstatic StringReturns the FITS date string for the current date and time.static StringgetFitsDateString(Date epoch) Returns the FITS date string for a specific date and timestatic StringgetFitsDateString(Date epoch, boolean timeOfDay) Returns the FITS date string, with or without the time component, for a specific date and time.inthashCode()toDate()Get a Java Date object corresponding to this FITS date.toString()
- 
Constructor Details- 
FitsDateConvert a FITS date string to a JavaDateobject.- Parameters:
- dStr- the FITS date
- Throws:
- FitsException- if- dStrdoes not contain a valid FITS date.
 
 
- 
- 
Method Details- 
getFitsDateStringReturns the FITS date string for the current date and time.- Returns:
- the current date in FITS date format
- See Also:
 
- 
getFitsDateStringReturns the FITS date string for a specific date and time- Parameters:
- epoch- The epoch to be converted to FITS format.
- Returns:
- a created FITS format date string Java Date object.
- See Also:
 
- 
getFitsDateStringReturns the FITS date string, with or without the time component, for a specific date and time.- Parameters:
- epoch- The epoch to be converted to FITS format.
- timeOfDay- Whether the time of day information shouldd be included
- Returns:
- a created FITS format date string. Note that the date is not rounded.
- See Also:
 
- 
toDateGet a Java Date object corresponding to this FITS date.- Returns:
- The Java Date object.
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
compareTo- Specified by:
- compareToin interface- Comparable<FitsDate>
 
 
-