466 {
return (lh.operator
Double() == rh.operator
Double());}
friend ostream & operator<<(ostream &os, const MVTime &meas)
Output a date/time.
MVTime()
Default constructor: generate a zero value.
const String & monthName() const
static MVTime::formatTypes giveMe(const String &in)
Get code belonging to string.
ostream & operator>>(ostream &is, MVTime &meas)
static Format getFormat()
Get default format.
static functions and enumerations
Pointed String class to aid analysis of quantity strings.
uInt month() const
Jan =1.
Double day() const
Get value of date/time (MJD) in given units.
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
static Double timeZone()
Get time zone offset (in days)
const String & dayName() const
Get indicated part of the time/date.
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 ...
MVTime & operator=(const MVTime &other)
Copy assignment.
date and time enquiry functions, with some operations.
static Bool read(Quantity &res, const String &in, Bool chk=True)
Make res time Quantity from string.
bool Bool
Define the standard types used by Casacore.
static MVTime::Format interimFormat
Temporary format.
void print(ostream &oss, const MVTime::Format &form) const
String string() const
Output data.
A class for high precision time.
String: the storage and methods of handling collections of characters.
Bool operator==(const MVTime &lh, const MVTime &rh)
is equal operator, uses operator Double which returns days
static MVTime::Format defaultFormat
Default format.
friend istream & operator>>(istream &is, MVTime &meas)
Input a date/time.
Class to handle date/time type conversions and I/O.
uInt weekday() const
Mon = 1; Sun = 7;.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.