We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fc1057 commit 7ed8b4fCopy full SHA for 7ed8b4f
1 file changed
docs/timestamps.md
@@ -16,7 +16,7 @@ They can be used in your struct like this:
16
17
```cpp
18
struct Person {
19
- rfl::Field<"birthday", rfl::Timestamp<"%Y-%m-%d">> birthday;
+ rfl::Timestamp<"%Y-%m-%d"> birthday;
20
};
21
```
22
@@ -31,8 +31,8 @@ You can access the underlying `std::tm` struct using the `.tm()` method and you
31
the string representation using the `.str()` method.
32
33
34
-const std::tm birthday = person1.birthday().tm();
35
-std::cout << person1.birthday().str() << std::endl;
+const std::tm birthday = person1.birthday.tm();
+std::cout << person1.birthday.str() << std::endl;
36
37
38
Note that constructing `rfl::Timestamp` from a string is convenient, but it might result in
0 commit comments