Lines Matching refs:datetime

40 namespace datetime = utils::datetime;
50 static optional< datetime::timestamp > mock_now = none;
57 datetime::delta::delta(void) : in delta()
68 datetime::delta::delta(const int64_t seconds_, in delta()
81 datetime::delta
82 datetime::delta::from_microseconds(const int64_t useconds) in from_microseconds()
92 datetime::delta::to_microseconds(void) const in to_microseconds()
104 datetime::delta::operator==(const datetime::delta& other) const in operator ==()
116 datetime::delta::operator!=(const datetime::delta& other) const in operator !=()
127 datetime::delta
128 datetime::delta::operator+(const datetime::delta& other) const in operator +()
140 datetime::delta
141 datetime::delta::operator+=(const datetime::delta& other) in operator +=()
155 datetime::operator<<(std::ostream& output, const delta& object) in operator <<()
162 namespace datetime { namespace
186 datetime::timestamp::timestamp(std::shared_ptr< impl > pimpl_) : in timestamp()
197 datetime::timestamp
198 datetime::timestamp::from_microseconds(const int64_t value) in from_microseconds()
220 datetime::timestamp
221 datetime::timestamp::from_values(const int year, const int month, in from_values()
267 datetime::timestamp
268 datetime::timestamp::now(void) in now()
289 datetime::timestamp::strftime(const std::string& format) const in strftime()
311 datetime::timestamp::to_microseconds(void) const in to_microseconds()
322 datetime::timestamp::to_seconds(void) const in to_seconds()
330 datetime::set_mock_now(const int year, const int month, in set_mock_now()
346 datetime::timestamp::operator==(const datetime::timestamp& other) const in operator ==()
359 datetime::timestamp::operator!=(const datetime::timestamp& other) const in operator !=()
370 datetime::delta
371 datetime::timestamp::operator-(const datetime::timestamp& other) const in operator -()
373 return datetime::delta::from_microseconds(to_microseconds() - in operator -()
385 datetime::operator<<(std::ostream& output, const timestamp& object) in operator <<()