32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/String.h>
34 #include <casacore/casa/iosfwd.h>
String: the storage and methods of handling collections of characters.
void now()
reset date to the present instant
friend istream & operator>>(istream &, Time &)
read in date, which must be in the following format month/day/year,hour:min:sec where month,...
Time(uInt year, uInt month, uInt day, uInt hour=0, uInt min=0, double sec=0.0)
Construct Time with Gregorian calendar.
double age()
number of seconds which have elapsed since Time object was created or reset
double operator-(const Time &begin)
Time(double jdn)
Construct time with Julian day number.
Bool operator<(const Time &other) const
static uInt howManyDaysInMonth(uInt month, uInt year)
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.
Time operator+(const double plus)
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...
static uInt howManyDaysInMonth()
void setDate(uInt year, uInt month, uInt day, uInt hour=0, uInt min=0, double sec=0.0)
double julianDay() const
return the Julian day (unit day)
static Bool isLeapYear(uInt year)
uInt mJulianDay
Modified Julian day number 40587 modified Julian day number = 00:00:00 January 1, 1970,...
friend ostream & operator<<(ostream &out, const Time &other)
write the current time, GMT, in format Tue Mar 22 16:40:24 1994
double modifiedJulianDay() const
return the modified Julian day (unit day)
static Int timeZoneSeconds()
Returns the difference, in seconds, between UTC and local time.
const String ISODate() const
returns a String in ISO 8601 format YYYY-MM-DDTHH:MM:SS in GMT note: for dates beyond year 9999,...
Time & operator=(const Time &time)
initialise the julian day data with Time class
Time()
the default constructor returns an object with the present date and time
uInt seconds()
Return the seconds, minutes or hour part of the time.
Time(const Time &time)
Copy constructor.
Bool operator==(const Time &other) const
static String timeZoneName()
Returns a string, e.g.
Bool operator!=(const Time &other) const
this file contains all the compiler specific defines
TableExprNode time(const TableExprNode &node)
LatticeExprNode min(const LatticeExprNode &left, const LatticeExprNode &right)
TableExprNode day(const TableExprNode &node)
bool Bool
Define the standard types used by Casacore.