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

Function iso_now

src/store/store.c:217–224  ·  view source on GitHub ↗

Get ISO-8601 timestamp. */

Source from the content-addressed store, hash-verified

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

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