| 160 | } |
| 161 | |
| 162 | std::string TimestampToString(Timestamp const & timestamp) |
| 163 | { |
| 164 | auto const ts = TimestampClock::to_time_t(timestamp); |
| 165 | std::string strTimeStamp = base::TimestampToString(ts); |
| 166 | if (strTimeStamp.size() != 20) |
| 167 | MYTHROW(KmlWriter::WriteKmlException, ("We always generate fixed length UTC-format timestamp.")); |
| 168 | return strTimeStamp; |
| 169 | } |
| 170 | |
| 171 | void SaveLocalizableString(Writer & writer, LocalizableString const & str, std::string const & tagName, |
| 172 | std::string_view const & indent) |