2 / Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
4 / Distributed under the Boost Software License, Version 1.0. (See accompanying
5 / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 [section:TimeTraits Time traits requirements]
10 In the table below, `X` denotes a time traits class for time type `Time`, `t`,
11 `t1`, and `t2` denote values of type `Time`, and `d` denotes a value of type
14 [table TimeTraits requirements
15 [[expression] [return type] [assertion/note\npre/post-condition]]
20 Represents an absolute time. Must support default construction, and meet
21 the requirements for `CopyConstructible` and `Assignable`.
28 Represents the difference between two absolute times. Must support
29 default construction, and meet the requirements for `CopyConstructible`
30 and `Assignable`. A duration can be positive, negative, or zero.
37 Returns the current time.
44 Returns a new absolute time resulting from adding the duration `d` to the
49 [`X::subtract(t1, t2);`]
52 Returns the duration resulting from subtracting `t2` from `t1`.
56 [`X::less_than(t1, t2);`]
59 Returns whether `t1` is to be treated as less than `t2`.
63 [`X::to_posix_duration(d);`]
64 [`date_time::time_duration_type`]
66 Returns the `date_time::time_duration_type` value that most closely
67 represents the duration `d`.