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