MCPcopy Create free account
hub / github.com/ddnet/ddnet / ExtractTimestamp

Method ExtractTimestamp

src/engine/shared/filecollection.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool CFileCollection::ExtractTimestamp(const char *pTimestring, time_t *pTimestamp)
49{
50 // Discard anything after timestamp length from pTimestring (most likely the extension)
51 char aStrippedTimestring[TIMESTAMP_LENGTH];
52 str_copy(aStrippedTimestring, pTimestring);
53 return timestamp_from_str(aStrippedTimestring, FORMAT_NOSPACE, pTimestamp);
54}
55
56bool CFileCollection::ParseFilename(const char *pFilename, time_t *pTimestamp)
57{

Callers

nothing calls this directly

Calls 2

timestamp_from_strFunction · 0.85
str_copyFunction · 0.50

Tested by

no test coverage detected