Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
Public Member Functions | |
Duration (const QString &step="", IlwisTypes tp=itTIME) | |
Duration (double r, IlwisTypes tp=itTIME) | |
QString | toString (bool local, IlwisTypes tp=itTIME) const |
bool | isValid () const |
double | get (TimePart part) const |
![]() | |
Time (int year, int month, int day, int hour, int minute, double seconds=0) | |
Time (int hour, int minute, double seconds=0) | |
Time (int year, int month=1, int day=1) | |
Time (const time_t time) | |
Time. More... | |
Time (const QString &isostring) | |
Time (const char *isostring) | |
Time (double jd, IlwisTypes m=itDATETIME) | |
Time (const QDateTime &time) | |
Time (const QDate &date) | |
Time (const QTime &tm) | |
Time (const Time &time) | |
virtual | ~Time () |
operator double () const | |
operator QDateTime () const | |
Time & | operator= (double t) |
time_t | toTime_t () const |
toTime_t More... | |
bool | isLeapYear (int year=iUNDEF) const |
Duration | operator- (const Time &time) const |
Time | operator+ (const Duration &duration) const |
bool | operator< (const Time &time) const |
bool | operator> (const Time &time) const |
bool | operator== (const Time &time) const |
bool | operator!= (const Time &time) const |
void | setValue (const QString &isostring) |
void | setYear (int year) |
void | setMonth (int Mnt) |
void | setDay (int dy) |
void | setHour (int hr) |
void | setMinute (int min) |
void | setSecond (double sec) |
IlwisTypes | valueType () const |
void | valueType (IlwisTypes tp) |
Additional Inherited Members | |
![]() | |
enum | TimePart { tpYEAR, tpMONTH, tpDAYOFMONTH, tpJULIANDAY, tpDAYOFTHEWEEK, tpDAYOFTHEYEAR, tpWEEKNUMBER, tpHOUR, tpMINUTE, tpSECOND, tpDATE, tpDAYTIME } |
The TimePart enum. | |
![]() | |
static Time | now () |
![]() | |
void | checkDate (int year, int month, int day) |
void | checkTime (int hour, int minute, double seconds) |
double | gregorianToJulian (int year, int month, int day, int hour, int minutes, double seconds) const |
void | julianToGregorian (int &year, int &month, int &day, int &hour, int &minutes, double &seconds) const |
int | julianyearday (int year, int month, int day) const |
int | tolong (double val) const |
void | parseOrdinalDate (int ordinal, int year, int &month, int &day) |
void | parseYearPart (const QString &yearpart, int &year, int &month, int &day) |
void | parseDayPart (const QString &dayPart, int &hours, int &minutes, double &seconds) |
void | parseIsoString (const QString &isostring, int &year, int &month, int &day, int &hours, int &minutes, double &seconds) |
![]() | |
double | _julianday |
bool | _valid |
IlwisTypes | _valuetype |
|
virtual |
Query for a single field of this Time.
You can query for:
part | The part of this Time requested (tpX values) |
Reimplemented from Ilwis::Time.
|
virtual |
Checks the validity of this time.
A time is invalid when there is no time set, or 1 or more of the inner members have an invalid value (negative value).
Reimplemented from Ilwis::Time.
|
virtual |
Translates this type to a string format of one of the following types:
The typ defaults to the value type of this time
local | |
mode |
Reimplemented from Ilwis::Time.