MCPcopy Create free account
hub / github.com/comaps/comaps / TimestampToString

Function TimestampToString

libs/kml/serdes.cpp:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162std::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
171void SaveLocalizableString(Writer & writer, LocalizableString const & str, std::string const & tagName,
172 std::string_view const & indent)

Callers 9

SaveCategoryExtendedDataFunction · 0.70
SaveBookmarkDataFunction · 0.70
SaveTrackDataFunction · 0.70
SetModificationTimeMethod · 0.50
SetUploadTimeMethod · 0.50
SetEditJournalMethod · 0.50
GetStatsMethod · 0.50
CreateNoteMethod · 0.50
UNIT_TESTFunction · 0.50

Calls 1

sizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.40