#include "oct-time.h"
Public Member Functions | |
OCTAVE_API | time (const base_tm &tm) |
time (const time &ot) | |
OCTAVE_API | time (double d) |
time (OCTAVE_TIME_T t) | |
time (OCTAVE_TIME_T t, long us) | |
time (void) | |
~time (void)=default | |
OCTAVE_API std::string | ctime (void) const |
double | double_value (void) const |
time & | operator= (const time &ot) |
OCTAVE_API void | stamp (void) |
OCTAVE_TIME_T | unix_time (void) const |
long | usec (void) const |
Private Attributes | |
OCTAVE_TIME_T | m_ot_unix_time |
long | m_ot_usec |
Friends | |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const time &ot) |
Definition at line 50 of file oct-time.h.
|
inline |
Definition at line 55 of file oct-time.h.
|
inline |
Definition at line 58 of file oct-time.h.
|
inline |
Definition at line 61 of file oct-time.h.
References rem().
time::time | ( | double | d | ) |
Definition at line 55 of file oct-time.cc.
References d.
time::time | ( | const base_tm & | tm | ) |
Definition at line 62 of file oct-time.cc.
References base_tm::gmtoff(), base_tm::hour(), base_tm::isdst(), m_ot_unix_time, m_ot_usec, base_tm::mday(), base_tm::min(), base_tm::mon(), octave_mktime_wrapper(), base_tm::sec(), strsave(), base_tm::usec(), base_tm::wday(), base_tm::yday(), base_tm::year(), and base_tm::zone().
|
inline |
Definition at line 87 of file oct-time.h.
|
default |
std::string time::ctime | ( | void | ) | const |
Definition at line 97 of file oct-time.cc.
References base_tm::asctime().
|
inline |
Definition at line 105 of file oct-time.h.
References as_double().
Definition at line 90 of file oct-time.h.
References m_ot_unix_time, and m_ot_usec.
void time::stamp | ( | void | ) |
Definition at line 114 of file oct-time.cc.
References m_ot_unix_time, m_ot_usec, and octave_gettimeofday_wrapper().
|
inline |
Definition at line 110 of file oct-time.h.
Referenced by localtime::init(), gmtime::init(), operator+(), operator<(), operator==(), and operator>().
|
inline |
Definition at line 112 of file oct-time.h.
Referenced by localtime::init(), gmtime::init(), operator+(), operator<(), operator==(), and operator>().
|
friend |
Definition at line 102 of file oct-time.cc.
|
private |
Definition at line 121 of file oct-time.h.
Referenced by time(), operator=(), and stamp().
|
private |
Definition at line 124 of file oct-time.h.
Referenced by time(), operator=(), and stamp().