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

Function iso_now

src/store/store.c:208–215  ·  view source on GitHub ↗

Get ISO-8601 timestamp. */

Source from the content-addressed store, hash-verified

206
207/* Get ISO-8601 timestamp. */
208static void iso_now(char *buf, size_t sz) {
209 time_t t = time(NULL);
210 struct tm tm;
211 cbm_gmtime_r(&t, &tm);
212 (void)strftime(buf, sz, "%Y-%m-%dT%H:%M:%SZ",
213 &tm); // cert-err33-c: strftime only fails if buffer is too small — 21-byte ISO
214 // timestamp always fits in caller-provided buffers
215}
216
217/* ── Schema ─────────────────────────────────────────────────────── */
218

Callers 2

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