ARTS
2.4.0(git:4fb77825)
|
Class to handle time in ARTS. More...
#include <artstime.h>
Public Types | |
using | InternalTimeStep = decltype(mtime)::duration |
Public Member Functions | |
Index | Version () const noexcept |
Time () | |
Time (std::time_t t) | |
Time (std::tm t) | |
const std::chrono::system_clock::time_point & | Data () const |
std::time_t | toTimeT () const |
std::tm | toStruct () const |
std::tm | toGMTStruct () const |
TimeStep | seconds_into_day () const |
InternalTimeStep | EpochTime () const |
InternalTimeStep | operator- (const Time &t) const |
bool | operator< (const Time &t) const |
bool | operator== (const Time &t) const |
template<typename T , typename R > | |
Time & | operator+= (const std::chrono::duration< T, R > &dt) |
template<typename T , typename R > | |
Time & | operator-= (const std::chrono::duration< T, R > &dt) |
template<typename T , typename R > | |
Time | operator+ (const std::chrono::duration< T, R > &dt) const |
template<typename T , typename R > | |
Time | operator- (const std::chrono::duration< T, R > &dt) const |
Numeric | Seconds () const |
void | Seconds (Numeric x) |
Numeric | PartOfSecond () const |
Private Attributes | |
std::chrono::system_clock::time_point | mtime |
Class to handle time in ARTS.
Definition at line 40 of file artstime.h.
using Time::InternalTimeStep = decltype(mtime)::duration |
Definition at line 45 of file artstime.h.
|
inline |
Definition at line 51 of file artstime.h.
Referenced by operator+(), and operator-().
|
inlineexplicit |
Definition at line 52 of file artstime.h.
|
inlineexplicit |
Definition at line 53 of file artstime.h.
|
inline |
Definition at line 56 of file artstime.h.
References mtime.
|
inline |
|
inline |
Definition at line 71 of file artstime.h.
References Time().
|
inline |
|
inline |
Definition at line 72 of file artstime.h.
References Time().
|
inline |
Definition at line 66 of file artstime.h.
References mtime.
|
inline |
Definition at line 70 of file artstime.h.
References mtime.
|
inline |
Definition at line 67 of file artstime.h.
References mtime.
|
inline |
Definition at line 68 of file artstime.h.
References mtime.
|
inline |
Definition at line 77 of file artstime.h.
References Seconds().
Referenced by operator<<(), and seconds_into_day().
|
inline |
|
inline |
Definition at line 76 of file artstime.h.
References operator+=(), Seconds(), and ARTS::Var::x().
Referenced by Seconds().
|
inline |
Definition at line 62 of file artstime.h.
References PartOfSecond(), toStruct(), and ARTS::Var::x().
|
inline |
Definition at line 61 of file artstime.h.
References toTimeT(), ARTS::Var::x(), and ARTS::Var::y().
|
inline |
Definition at line 60 of file artstime.h.
References toTimeT(), ARTS::Var::x(), and ARTS::Var::y().
Referenced by operator<<(), and seconds_into_day().
|
inline |
Definition at line 59 of file artstime.h.
References mtime.
Referenced by toGMTStruct(), and toStruct().
|
inlinenoexcept |
Definition at line 48 of file artstime.h.
Referenced by xml_write_to_stream().
|
private |
Definition at line 42 of file artstime.h.
Referenced by Data(), EpochTime(), operator+=(), operator-(), operator-=(), operator<(), operator==(), Seconds(), and toTimeT().