tmp/tmp5zoxzly7/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Last write time <a id="fs.op.last.write.time">[[fs.op.last.write.time]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
file_time_type last_write_time(const path& p);
|
| 5 |
+
file_time_type 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
|
| 16 |
+
void last_write_time(const path& p, file_time_type new_time);
|
| 17 |
+
void 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 since it might not hold for file systems with coarse time
|
| 28 |
+
granularity. — *end note*]
|
| 29 |
+
|