32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/BasicSL/String.h> 34 #include <casacore/casa/iosfwd.h>
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)
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
Bool operator<(const Time &other) const
double julianDay() const
return the Julian day
static Int timeZoneSeconds()
Returns the difference, in seconds, between UTC and local time.
static String timeZoneName()
Returns a string, e.g.
static uInt howManyDaysInMonth()
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
double mJulianDayfrac
the fraction of the day
static Double timeZoneDays()
Same as timeZoneSeconds(), but returns fractional days rather than seconds.
const String ISODate() const
returns a String in ISO 8601 format YYYY-MM-DDTHH:MM:SS in GMT note: for dates beyond year 9999...
Bool operator==(const Time &other) const
date and time enquiry functions, with some operations.
Bool operator!=(const Time &other) const
bool Bool
Define the standard types used by Casacore.
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...
Bool operator>(const Time &other) const
Time()
the default constructor returns an object with the present date and time
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.
friend istream & operator>>(istream &, Time &)
read in date, which must be in the following format month/day/year,hour:min:sec where month...
this file contains all the compiler specific defines
double modifiedJulianDay() const
return the modified Julian day
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
double operator-(const Time &begin)