From Jason Turner

[time.duration.io]

Diff to HTML by rtfpessoa

tmp/tmpwwtd2mo3/{from.md → to.md} RENAMED
@@ -47,11 +47,11 @@ where *`units-suffix`* depends on the type `Period::type` as follows:
47
  `"d"`.
48
  - Otherwise, if `Period::type::den == 1`, *`units-suffix`* is
49
  `"[`*`num`*`]s"`.
50
  - Otherwise, *`units-suffix`* is `"[`*`num`*`/`*`den`*`]s"`.
51
 
52
- In the list above, the use of *`num`* and *`den`* refer to the static
53
  data members of `Period::type`, which are converted to arrays of `charT`
54
  using a decimal conversion with no leading zeroes.
55
 
56
  *Returns:* `os`.
57
 
@@ -64,15 +64,14 @@ template<class charT, class traits, class Rep, class Period, class Alloc = alloc
64
  minutes* offset = nullptr);
65
  ```
66
 
67
  *Effects:* Attempts to parse the input stream `is` into the duration `d`
68
  using the format flags given in the NTCTS `fmt` as specified in
69
- [[time.parse]]. If the parse parses everything specified by the parsing
70
- format flags without error, and yet none of the flags impacts a
71
- duration, `d` will be assigned a zero value. If `%Z` is used and
72
- successfully parsed, that value will be assigned to `*abbrev` if
73
- `abbrev` is non-null. If `%z` (or a modified variant) is used and
74
- successfully parsed, that value will be assigned to `*offset` if
75
- `offset` is non-null.
76
 
77
  *Returns:* `is`.
78
 
 
47
  `"d"`.
48
  - Otherwise, if `Period::type::den == 1`, *`units-suffix`* is
49
  `"[`*`num`*`]s"`.
50
  - Otherwise, *`units-suffix`* is `"[`*`num`*`/`*`den`*`]s"`.
51
 
52
+ In the list above, the use of *`num`* and *`den`* refers to the static
53
  data members of `Period::type`, which are converted to arrays of `charT`
54
  using a decimal conversion with no leading zeroes.
55
 
56
  *Returns:* `os`.
57
 
 
64
  minutes* offset = nullptr);
65
  ```
66
 
67
  *Effects:* Attempts to parse the input stream `is` into the duration `d`
68
  using the format flags given in the NTCTS `fmt` as specified in
69
+ [[time.parse]]. If the parse fails to decode a valid duration,
70
+ `is.setstate(ios_base::failbit)` is called and `d` is not modified. If
71
+ `%Z` is used and successfully parsed, that value will be assigned to
72
+ `*abbrev` if `abbrev` is non-null. If `%z` (or a modified variant) is
73
+ used and successfully parsed, that value will be assigned to `*offset`
74
+ if `offset` is non-null.
 
75
 
76
  *Returns:* `is`.
77