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