From Jason Turner

[fs.op.last.write.time]

Diff to HTML by rtfpessoa

tmp/tmpxkut_kgg/{from.md → to.md} RENAMED
@@ -5,11 +5,11 @@ file_time_type filesystem::last_write_time(const path& p);
5
  file_time_type filesystem::last_write_time(const path& p, error_code& ec) noexcept;
6
  ```
7
 
8
  *Returns:* The time of last data modification of `p`, determined as if
9
  by the value of the POSIX `stat` class member `st_mtime` obtained as if
10
- by POSIX `stat()`. The signature with argument `ec` returns
11
  `file_time_type::min()` if an error occurs.
12
 
13
  *Throws:* As specified in  [[fs.err.report]].
14
 
15
  ``` cpp
@@ -17,11 +17,11 @@ void filesystem::last_write_time(const path& p, file_time_type new_time);
17
  void filesystem::last_write_time(const path& p, file_time_type new_time,
18
  error_code& ec) noexcept;
19
  ```
20
 
21
  *Effects:* Sets the time of last data modification of the file resolved
22
- to by `p` to `new_time`, as if by POSIX `futimens()`.
23
 
24
  *Throws:* As specified in  [[fs.err.report]].
25
 
26
  [*Note 1*: A postcondition of `last_write_time(p) == new_time` is not
27
  specified because it does not necessarily hold for file systems with
 
5
  file_time_type filesystem::last_write_time(const path& p, error_code& ec) noexcept;
6
  ```
7
 
8
  *Returns:* The time of last data modification of `p`, determined as if
9
  by the value of the POSIX `stat` class member `st_mtime` obtained as if
10
+ by POSIX `stat`. The signature with argument `ec` returns
11
  `file_time_type::min()` if an error occurs.
12
 
13
  *Throws:* As specified in  [[fs.err.report]].
14
 
15
  ``` cpp
 
17
  void filesystem::last_write_time(const path& p, file_time_type new_time,
18
  error_code& ec) noexcept;
19
  ```
20
 
21
  *Effects:* Sets the time of last data modification of the file resolved
22
+ to by `p` to `new_time`, as if by POSIX `futimens`.
23
 
24
  *Throws:* As specified in  [[fs.err.report]].
25
 
26
  [*Note 1*: A postcondition of `last_write_time(p) == new_time` is not
27
  specified because it does not necessarily hold for file systems with