33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Quanta/Quantum.h>
35 #include <casacore/casa/iosfwd.h>
465 {
return (lh.operator
Double() == rh.operator
Double());}
static functions and enumerations
MVTime(Int yy, Int mm, Double dd, Double d=0.0)
Constructor from yy, mm, dd, dd (all dd with fractions allowed)
static Bool read(Quantity &res, const String &in, Bool chk=True)
Make res time Quantity from string.
String string(uInt intyp, uInt inprec) const
String string(const MVTime::Format &form) const
MVTime(const MVTime &other)
Copy constructor.
friend istream & operator>>(istream &is, MVTime &meas)
Input a date/time.
uInt weekday() const
Mon = 1; Sun = 7;.
friend ostream & operator<<(ostream &os, const MVTime::Format &form)
Set a temporary format.
MVTime(Double d)
Constructor from Double (in MJD)
static Format getFormat()
Get default format.
static const String & dayName(uInt which)
Double day() const
Get value of date/time (MJD) in given units.
MVTime(const Quantity &other)
Constructor from Quantum : value can be an angle or time.
MVTime()
Default constructor: generate a zero value.
static Double timeZone()
Get time zone offset (in days)
void ymd(Int &yyyy, Int &mm, Int &dd) const
Get the y,m,d values.
const String & dayName() const
Get indicated part of the time/date.
static Format setFormat(uInt intyp, uInt inprec)
static Format setFormat(const Format &form)
static MVTime::Format defaultFormat
Default format.
static MVTime::Format interimFormat
Temporary format.
void print(ostream &oss, const MVTime::Format &form) const
static Bool read(Quantity &res, const String &in, Bool chk, Bool throwExcp)
static Format setFormat(uInt inprec=0)
uInt month() const
Jan =1.
MVTime(const Time &other)
Constructor from Time.
String string() const
Output data.
static Bool read(Quantity &res, MUString &in, Bool chk, Bool throwExcp)
static Bool read(Quantity &res, MUString &in, Bool chk=True)
static Format setFormat(MVTime::formatTypes intyp, uInt inprec=0)
Set default format Warning: It is thread-unsafe to print using the setFormat functions because they ...
friend ostream & operator<<(ostream &os, const MVTime &meas)
Output a date/time.
String string(MVTime::formatTypes intyp, uInt inprec=0) const
static const String & monthName(uInt which)
const String & monthName() const
static MVTime::formatTypes giveMe(const String &in)
Get code belonging to string.
Quantity get(const Unit &inunit) const
String string(uInt inprec) const
MVTime & operator=(const MVTime &other)
Copy assignment.
MVTime(const MVEpoch &other)
Constructor from MVEpoch;.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool operator==(const casacore_allocator< T, ALIGNMENT > &, const casacore_allocator< T, ALIGNMENT > &)
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
AipsIO & operator>>(AipsIO &os, Record &rec)