ARTS 2.5.11 (git: 6827797f)
|
Class to handle time in ARTS. More...
#include <artstime.h>
Public Types | |
using | InternalTimeStep = decltype(time)::duration |
Public Member Functions | |
Index | Version () const noexcept |
Time () | |
Time (std::time_t t) | |
Time (std::tm t) | |
Time (const String &t) | |
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 noexcept |
bool | operator< (const Time &t) const noexcept |
bool | operator== (const Time &t) const noexcept |
bool | operator!= (const Time &t) const noexcept |
bool | operator<= (const Time &t) const noexcept |
bool | operator> (const Time &t) const noexcept |
bool | operator>= (const Time &t) const noexcept |
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 |
operator Numeric () const | |
Public Attributes | |
std::chrono::system_clock::time_point | time |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Time &t) |
std::istream & | operator>> (std::istream &is, Time &t) |
Class to handle time in ARTS.
Definition at line 25 of file artstime.h.
using Time::InternalTimeStep = decltype(time)::duration |
Definition at line 27 of file artstime.h.
|
inline |
Definition at line 33 of file artstime.h.
Referenced by operator+(), and operator-().
|
inlineexplicit |
Definition at line 34 of file artstime.h.
|
inlineexplicit |
Definition at line 36 of file artstime.h.
|
explicit |
Definition at line 14 of file artstime.cc.
|
inline |
|
inlineexplicit |
Definition at line 114 of file artstime.h.
References Seconds().
|
inlinenoexcept |
Definition at line 72 of file artstime.h.
References operator==().
|
inline |
Definition at line 95 of file artstime.h.
References Time().
|
inline |
|
inline |
Definition at line 99 of file artstime.h.
References Time().
|
inlinenoexcept |
Definition at line 67 of file artstime.h.
References time.
|
inline |
Definition at line 90 of file artstime.h.
References time.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 75 of file artstime.h.
References operator<(), and operator==().
Referenced by operator>().
|
inlinenoexcept |
Definition at line 71 of file artstime.h.
References time.
Referenced by operator!=(), operator<=(), and operator>=().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 81 of file artstime.h.
References operator==(), and operator>().
|
inline |
|
inline |
Definition at line 104 of file artstime.h.
References time.
Referenced by IGRF::compute(), operator Numeric(), and PartOfSecond().
|
inline |
Definition at line 108 of file artstime.h.
References operator+=(), and Seconds().
Referenced by Seconds().
|
inline |
Definition at line 57 of file artstime.h.
References PartOfSecond(), and toStruct().
|
inline |
Definition at line 50 of file artstime.h.
References ARTS_USER_ERROR_IF, and toTimeT().
Referenced by LocalTimeOffset().
|
inline |
Definition at line 43 of file artstime.h.
References ARTS_USER_ERROR_IF, and toTimeT().
Referenced by LocalTimeOffset(), and seconds_into_day().
|
inline |
Definition at line 40 of file artstime.h.
References time.
Referenced by toGMTStruct(), and toStruct().
|
inlinenoexcept |
Definition at line 30 of file artstime.h.
Referenced by xml_write_to_stream().
|
friend |
Definition at line 86 of file artstime.cc.
|
friend |
Definition at line 104 of file artstime.cc.
std::chrono::system_clock::time_point Time::time |
Definition at line 26 of file artstime.h.
Referenced by EpochTime(), operator+=(), operator-(), operator-=(), operator<(), operator==(), Seconds(), timeSleep(), and toTimeT().