MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fsSafeIsoTimestamp

Function fsSafeIsoTimestamp

app/src/Misc/BackupManager.cpp:53–56  ·  view source on GitHub ↗

* @brief Filesystem-safe ISO8601 timestamp (colons replaced with dashes). */

Source from the content-addressed store, hash-verified

51 * @brief Filesystem-safe ISO8601 timestamp (colons replaced with dashes).
52 */
53static QString fsSafeIsoTimestamp()
54{
55 return QDateTime::currentDateTimeUtc().toString(QStringLiteral("yyyy-MM-ddTHH-mm-ss-zzz"));
56}
57
58/**
59 * @brief Sanitise a label into a filename-safe token.

Callers 1

snapshotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected