From Jason Turner

[fs.op.last_write_time]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbowla472/{from.md → to.md} +0 -29
tmp/tmpbowla472/{from.md → to.md} RENAMED
@@ -1,29 +0,0 @@
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` structure member `st_mtime` obtained as
10
- if 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
-