29 #ifndef CASA_MVEPOCH_H
30 #define CASA_MVEPOCH_H
174 virtual void print(ostream &os)
const;
Double getDay() const
Get value of integer days.
MVEpoch operator-(const MVEpoch &other) const
MVEpoch & operator-=(const MVEpoch &other)
Difference times.
MVEpoch & operator=(const MVEpoch &other)
Copy assignment.
MVEpoch operator+(const MVEpoch &other) const
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
Bool nearAbs(const MVEpoch &other, Double tol=1e-13) const
Quantity getTime() const
Get value with units.
Bool near(const MVEpoch &other, Double tol=1e-13) const
virtual uInt type() const
Tell me your type.
static const Double secInDay
Constants.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
virtual void print(ostream &os) const
Print a value.
Double wday
Whole days Note that if higher precision is needed, the splitting could be in 0.001 days and fraction...
Double getDayFraction() const
Get fraction of days.
Base class for values in a Measure.
virtual MeasValue * clone() const
Clone a value.
static const Unit unitDay
Bool operator==(const MVEpoch &other) const
Comparisons.
MVEpoch()
Default constructor, generates default 0 epoch.
MVEpoch & operator+=(const MVEpoch &other)
Add times.
bool Bool
Define the standard types used by Casacore.
void addTime(Double in)
Add time from days.
Double frday
Fraction of days.
static void assure(const MeasValue &in)
virtual Vector< Double > getVector() const
Get the value in internal units.
A class for high precision time.
virtual void adjust()
Adjust the time to its constituent parts.
const Double e
e and functions thereof:
Double makeDay(const Quantity &in) const
Make days from quantity.
Bool operator!=(const MVEpoch &other) const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.