Lines Matching refs:timestamp
54 static optional< datetime::timestamp > mock_now = none;
261 struct timestamp::impl : utils::noncopyable {
281 datetime::timestamp::timestamp(std::shared_ptr< impl > pimpl_) : in timestamp() function in datetime::timestamp
292 datetime::timestamp
293 datetime::timestamp::from_microseconds(const int64_t value) in from_microseconds()
299 return timestamp(std::shared_ptr< impl >(new impl(data))); in from_microseconds()
315 datetime::timestamp
316 datetime::timestamp::from_values(const int year, const int month, in from_values()
355 return timestamp(std::shared_ptr< impl >(new impl(data))); in from_values()
362 datetime::timestamp
363 datetime::timestamp::now(void) in now()
374 return timestamp(std::shared_ptr< impl >(new impl(data))); in now()
384 datetime::timestamp::strftime(const std::string& format) const in strftime()
406 datetime::timestamp::to_iso8601_in_utc(void) const in to_iso8601_in_utc()
416 datetime::timestamp::to_microseconds(void) const in to_microseconds()
427 datetime::timestamp::to_seconds(void) const in to_seconds()
440 mock_now = timestamp::from_values(year, month, day, hour, minute, second, in set_mock_now()
449 datetime::set_mock_now(const timestamp& mock_now_) in set_mock_now()
461 datetime::timestamp::operator==(const datetime::timestamp& other) const in operator ==()
474 datetime::timestamp::operator!=(const datetime::timestamp& other) const in operator !=()
486 datetime::timestamp::operator<(const datetime::timestamp& other) const in operator <()
499 datetime::timestamp::operator<=(const datetime::timestamp& other) const in operator <=()
511 datetime::timestamp::operator>(const datetime::timestamp& other) const in operator >()
524 datetime::timestamp::operator>=(const datetime::timestamp& other) const in operator >=()
535 datetime::timestamp
536 datetime::timestamp::operator+(const datetime::delta& other) const in operator +()
538 return datetime::timestamp::from_microseconds(to_microseconds() + in operator +()
548 datetime::timestamp&
549 datetime::timestamp::operator+=(const datetime::delta& other) in operator +=()
561 datetime::timestamp
562 datetime::timestamp::operator-(const datetime::delta& other) const in operator -()
564 return datetime::timestamp::from_microseconds(to_microseconds() - in operator -()
574 datetime::timestamp&
575 datetime::timestamp::operator-=(const datetime::delta& other) in operator -=()
591 datetime::timestamp::operator-(const datetime::timestamp& other) const in operator -()
611 datetime::operator<<(std::ostream& output, const timestamp& object) in operator <<()