From Jason Turner

[time.clock.file.nonmembers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpr0e938ll/{from.md → to.md} +35 -0
tmp/tmpr0e938ll/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Non-member functions <a id="time.clock.file.nonmembers">[[time.clock.file.nonmembers]]</a>
2
+
3
+ ``` cpp
4
+ template<class charT, class traits, class Duration>
5
+ basic_ostream<charT, traits>&
6
+ operator<<(basic_ostream<charT, traits>& os, const file_time<Duration>& t);
7
+ ```
8
+
9
+ *Effects:* Equivalent to:
10
+
11
+ ``` cpp
12
+ return os << format(STATICALLY-WIDEN<charT>("{:%F %T}"), t);
13
+ ```
14
+
15
+ ``` cpp
16
+ template<class charT, class traits, class Duration, class Alloc = allocator<charT>>
17
+ basic_istream<charT, traits>&
18
+ from_stream(basic_istream<charT, traits>& is, const charT* fmt,
19
+ file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
20
+ minutes* offset = nullptr);
21
+ ```
22
+
23
+ *Effects:* Attempts to parse the input stream `is` into the `file_time`
24
+ `tp` using the format flags given in the NTCTS `fmt` as specified in
25
+ [[time.parse]]. If the parse fails to decode a valid date,
26
+ `is.setstate(ios_base::failbit)` is called and `tp` is not modified. If
27
+ `%Z` is used and successfully parsed, that value will be assigned to
28
+ `*abbrev` if `abbrev` is non-null. If `%z` (or a modified variant) is
29
+ used and successfully parsed, that value will be assigned to `*offset`
30
+ if `offset` is non-null. Additionally, the parsed offset will be
31
+ subtracted from the successfully parsed timestamp prior to assigning
32
+ that difference to `tp`.
33
+
34
+ *Returns:* `is`.
35
+