Lines Matching refs:timestamp
50 static optional< datetime::timestamp > mock_now = none;
166 struct timestamp::impl {
186 datetime::timestamp::timestamp(std::shared_ptr< impl > pimpl_) : in timestamp() function in datetime::timestamp
197 datetime::timestamp
198 datetime::timestamp::from_microseconds(const int64_t value) in from_microseconds()
204 return timestamp(std::shared_ptr< impl >(new impl(data))); in from_microseconds()
220 datetime::timestamp
221 datetime::timestamp::from_values(const int year, const int month, in from_values()
260 return timestamp(std::shared_ptr< impl >(new impl(data))); in from_values()
267 datetime::timestamp
268 datetime::timestamp::now(void) in now()
279 return timestamp(std::shared_ptr< impl >(new impl(data))); 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()
335 mock_now = timestamp::from_values(year, month, day, hour, minute, second, 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 !=()
371 datetime::timestamp::operator-(const datetime::timestamp& other) const in operator -()
385 datetime::operator<<(std::ostream& output, const timestamp& object) in operator <<()