MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / iso_timestamp

Function iso_timestamp

src/pipeline/artifact.c:269–278  ·  view source on GitHub ↗

Generate ISO 8601 timestamp into buf. */

Source from the content-addressed store, hash-verified

267
268/* Generate ISO 8601 timestamp into buf. */
269static void iso_timestamp(char *buf, size_t bufsz) {
270 time_t now = time(NULL);
271 struct tm tm;
272#ifdef _WIN32
273 gmtime_s(&tm, &now);
274#else
275 gmtime_r(&now, &tm);
276#endif
277 (void)strftime(buf, bufsz, "%Y-%m-%dT%H:%M:%SZ", &tm);
278}
279
280/* ── Metadata read/write ─────────────────────────────────────────── */
281

Callers 1

write_metadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected