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

Function iso_now

src/store/store.c:218–225  ·  view source on GitHub ↗

Get ISO-8601 timestamp. */

Source from the content-addressed store, hash-verified

216
217/* Get ISO-8601 timestamp. */
218static void iso_now(char *buf, size_t sz) {
219 time_t t = time(NULL);
220 struct tm tm;
221 cbm_gmtime_r(&t, &tm);
222 (void)strftime(buf, sz, "%Y-%m-%dT%H:%M:%SZ",
223 &tm); // cert-err33-c: strftime only fails if buffer is too small — 21-byte ISO
224 // timestamp always fits in caller-provided buffers
225}
226
227/* ── Schema ─────────────────────────────────────────────────────── */
228

Callers 3

cbm_store_upsert_projectFunction · 0.85
cbm_store_adr_storeFunction · 0.85

Calls 1

cbm_gmtime_rFunction · 0.85

Tested by

no test coverage detected