void now()
reset date to the present instant
uInt mJulianDay
Modified Julian day number 40587 modified Julian day number = 00:00:00 January 1, 1970...
TableExprNode time(const TableExprNode &node)
void setDate(uInt year, uInt month, uInt day, uInt hour=0, uInt min=0, double sec=0.0)
Bool operator<(const Time &other) const
Time & operator=(const Time &time)
initialise the julian day data with Time class
double age()
number of seconds which have elapsed since Time object was created or reset
static Int timeZoneSeconds()
Returns the difference, in seconds, between UTC and local time.
static String timeZoneName()
Returns a string, e.g.
static uInt howManyDaysInMonth()
Bool operator==(const Time &other) const
const_iterator begin() const
double modifiedJulianDay() const
return the modified Julian day (unit day)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
double mJulianDayfrac
the fraction of the day
Bool operator!=(const Time &other) const
static Double timeZoneDays()
Same as timeZoneSeconds(), but returns fractional days rather than seconds.
date and time enquiry functions, with some operations.
bool Bool
Define the standard types used by Casacore.
Time()
the default constructor returns an object with the present date and time
Bool operator>(const Time &other) const
String toString(const Bool iso=False) const
if iso is True, then use ISO 8601 format otherwise, produce the string of the form Tue Mar 22 16:40:2...
TableExprNode day(const TableExprNode &node)
uInt seconds()
Return the seconds, minutes or hour part of the time.
String: the storage and methods of handling collections of characters.
double julianDay() const
return the Julian day (unit day)
friend istream & operator>>(istream &, Time &)
read in date, which must be in the following format month/day/year,hour:min:sec where month...
Time operator+(const double plus)
friend ostream & operator<<(ostream &out, const Time &other)
write the current time, GMT, in format Tue Mar 22 16:40:24 1994
const String ISODate() const
returns a String in ISO 8601 format YYYY-MM-DDTHH:MM:SS in GMT note: for dates beyond year 9999...
double operator-(const Time &begin)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.