Lines Matching refs:time_point
109 class time_point
120 time_point(); // has value "epoch" // constexpr in C++14
121 explicit time_point(const duration& d); // same as time_point() + d // constexpr in C++14
125 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14
133 time_point& operator+=(const duration& d); // constexpr in C++17
134 time_point& operator-=(const duration& d); // constexpr in C++17
138 static constexpr time_point min(); // noexcept in C++20
139 static constexpr time_point max(); // noexcept in C++20
149 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>;
212 // time_point arithmetic (all constexpr in C++14)
214 time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
215 operator+(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
217 time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
218 operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
220 time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
221 operator-(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
224 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
226 // time_point comparisons (all constexpr in C++14)
228 … bool operator==(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
230 … bool operator!=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
232 … bool operator< (const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
234 … bool operator<=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
236 … bool operator> (const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
238 … bool operator>=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
243 time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);
246 constexpr time_point<Clock, ToDuration>
247 floor(const time_point<Clock, Duration>& tp); // C++17
250 constexpr time_point<Clock, ToDuration>
251 ceil(const time_point<Clock, Duration>& tp); // C++17
254 constexpr time_point<Clock, ToDuration>
255 round(const time_point<Clock, Duration>& tp); // C++17
268 typedef chrono::time_point<system_clock> time_point;
271 static time_point now() noexcept;
272 static time_t to_time_t (const time_point& __t) noexcept;
273 static time_point from_time_t(time_t __t) noexcept;
277 using sys_time = time_point<system_clock, Duration>; // C++20
287 typedef chrono::time_point<file_clock> time_point;
290 static time_point now() noexcept;
300 using file_time = time_point<file_clock, Duration>; // C++20
308 typedef chrono::time_point<steady_clock, duration> time_point;
311 static time_point now() noexcept;
319 using local_time = time_point<local_t, Duration>;
709 #include <__chrono/time_point.h>