Skip to content

Commit d8133de

Browse files
committed
Merge pull request #4 from alexcrichton/time
Final clarifications
2 parents c8734cc + 0696489 commit d8133de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

text/0000-time-improvements.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ represents an opaque (non-serializable!) timestamp that is guaranteed to
145145
be monotonic when compared to another `Instant`.
146146

147147
> In this context, monotonic means that a timestamp created later in real-world
148-
> time will always be larger than a timestamp created earlier in real-world
148+
> time will always be not less than a timestamp created earlier in real-world
149149
> time.
150150
151151
The `Duration` type can be used in conjunction with `Instant`, and these
@@ -162,7 +162,7 @@ difference between an earlier and a later `Instant` also produces a positive
162162
`Duration` when used correctly.
163163

164164
This design does not assume that negative `Duration`s are never useful, but
165-
rather than the most common uses of `Duration` do not have a meaningful
165+
rather that the most common uses of `Duration` do not have a meaningful
166166
use for negative values. Rather than require each API that takes a `Duration`
167167
to produce an `Err` (or `panic!`) when receiving a negative value, this design
168168
optimizes for the broadly useful positive `Duration`.
@@ -227,7 +227,8 @@ impl Duration {
227227
benchmarks.**
228228

229229
A `SystemTime` represents a time stored on the local machine derived from the
230-
system clock. For example, it is used to represent `mtime` on the file system.
230+
system clock (in UTC). For example, it is used to represent `mtime` on the file
231+
system.
231232

232233
The most important caveat of `SystemTime` is that it is **not monotonic**. This
233234
means that you can save a file to the file system, then save another file to

0 commit comments

Comments
 (0)