30 #ifndef FITS_FITSDATEUTIL_H
31 #define FITS_FITSDATEUTIL_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/measures/Measures/MEpoch.h>
static Bool fromFITS(MVTime &time, MEpoch::Types &system, const String &date, const String ×ys)
Convert a FITS date string and TIMESYS keyword value into an MVTime and system.
@ NEW_DATEANDTIME
yyyy-mm-ddThh:mm:ss[.ss...]
@ AUTO_PICK
OLD if the current year is before 1998 AND "time" is before 1998, otherwise NEW_DATEANDTIME.
static uInt findPrecision(const String &fitsDate)
Determine the precision in a FITS date string.
static void toFITS(String &date, String ×ys, const MVTime &time, MEpoch::Types system=MEpoch::UTC, DateStyle style=AUTO_PICK, uInt precision=12)
Convert an MVTime to a FITS date string and timesys string.
static Bool convertDateString(String &out, const String &in)
Convert a FITS Date string to the current format.
Types
Types of known MEpochs Caution: The order defines the order in the translation matrix in the MCEpoch...
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
TableExprNode time(const TableExprNode &node)
TableExprNode date(const TableExprNode &node)
bool Bool
Define the standard types used by Casacore.