|
MI - Fimex
|
#include <fimex/TimeUnit.h>
Public Types | |
| enum | special_values { min_date_time, max_date_time } |
Public Member Functions | |
| FimexTime () | |
| FimexTime (unsigned short year, char month, char mday, char hour=0, char minute=0, char second=0, unsigned short msecond=0) | |
| FimexTime (special_values val) | |
| bool | parseISO8601 (const std::string &isoString) |
| void | setTime (unsigned short year, char month, char mday, char hour=0, char minute=0, char second=0, unsigned short msecond=0) |
| set all the time-parameters at once More... | |
| unsigned short | getYear () const |
| year (2008 as of writing) More... | |
| void | setYear (unsigned short year) |
| char | getMonth () const |
| month (1-12) More... | |
| void | setMonth (char month) |
| char | getMDay () const |
| day of month (1-31) More... | |
| void | setMDay (char mday) |
| char | getHour () const |
| hour (0-23) More... | |
| void | setHour (char hour) |
| char | getMinute () const |
| minute (0-59) More... | |
| void | setMinute (char minute) |
| char | getSecond () const |
| second (0-59) More... | |
| void | setSecond (char second) |
| unsigned short | getMSecond () const |
| millisecond More... | |
| void | setMSecond (unsigned short msecond) |
| boost::posix_time::ptime | asPosixTime () const |
| bool | operator== (const FimexTime &rhs) const |
| compare two fimexTimes More... | |
| bool | operator!= (const FimexTime &rhs) const |
| compare two fimexTimes More... | |
| bool | operator> (const FimexTime &rhs) const |
| compare two fimexTimes More... | |
| bool | operator< (const FimexTime &rhs) const |
| compare two fimexTimes More... | |
| bool | operator>= (const FimexTime &rhs) const |
| compare two fimexTimes More... | |
| bool | operator<= (const FimexTime &rhs) const |
| compare two fimexTimes More... | |
time representation and some overloaded operators
|
inline |
References parseISO8601(), and setTime().
| MetNoFimex::FimexTime::FimexTime | ( | unsigned short | year, |
| char | month, | ||
| char | mday, | ||
| char | hour = 0, |
||
| char | minute = 0, |
||
| char | second = 0, |
||
| unsigned short | msecond = 0 |
||
| ) |
| MetNoFimex::FimexTime::FimexTime | ( | special_values | val | ) |
| boost::posix_time::ptime MetNoFimex::FimexTime::asPosixTime | ( | ) | const |
Referenced by setMSecond().
|
inline |
hour (0-23)
|
inline |
day of month (1-31)
|
inline |
minute (0-59)
|
inline |
month (1-12)
|
inline |
millisecond
|
inline |
second (0-59)
|
inline |
year (2008 as of writing)
|
inline |
compare two fimexTimes
|
inline |
compare two fimexTimes
|
inline |
compare two fimexTimes
References MetNoFimex::operator<<(), and MetNoFimex::string2FimexTime().
| bool MetNoFimex::FimexTime::operator== | ( | const FimexTime & | rhs | ) | const |
compare two fimexTimes
Referenced by setMSecond().
|
inline |
compare two fimexTimes
|
inline |
compare two fimexTimes
| bool MetNoFimex::FimexTime::parseISO8601 | ( | const std::string & | isoString | ) |
parse and set the time in ISO8601 formats (not all), e.g. YYYY-MM-DD, HH:MM:SS, YYYY-MM-DD HH:MM:SS, YYYY-MM-DDTHH:MM:SS (and without seconds)
Referenced by FimexTime().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References asPosixTime(), and operator==().
|
inline |
| void MetNoFimex::FimexTime::setTime | ( | unsigned short | year, |
| char | month, | ||
| char | mday, | ||
| char | hour = 0, |
||
| char | minute = 0, |
||
| char | second = 0, |
||
| unsigned short | msecond = 0 |
||
| ) |
set all the time-parameters at once
Referenced by FimexTime().
|
inline |
1.8.11