Stream manipulator class which serializes Time objects in RFC 3339 format. Example: 1996-12-19T16:39:57-08:00,234
| 117 | // format. |
| 118 | // Example: 1996-12-19T16:39:57-08:00,234 |
| 119 | class RFC3339 |
| 120 | { |
| 121 | public: |
| 122 | explicit RFC3339(const Time& _time) : time(_time) {} |
| 123 | |
| 124 | private: |
| 125 | friend std::ostream& operator<<(std::ostream& stream, const RFC3339& format); |
| 126 | |
| 127 | const Time time; |
| 128 | }; |
| 129 | |
| 130 | |
| 131 | std::ostream& operator<<(std::ostream& stream, const RFC3339& formatter); |