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

Function generate_iso_timestamp

src/graph_buffer/graph_buffer.c:2487–2494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2485}
2486
2487static void generate_iso_timestamp(char *buf, size_t buf_size) {
2488 time_t now = time(NULL);
2489 struct tm tm_buf;
2490 struct tm *tm_val = cbm_gmtime_r(&now, &tm_buf);
2491 if (strftime(buf, buf_size, "%Y-%m-%dT%H:%M:%SZ", tm_val) == 0) {
2492 snprintf(buf, buf_size, "1970-01-01T00:00:00Z");
2493 }
2494}
2495
2496/* Release lookup indexes then remap+sort+dedup vectors for the B-tree writer. */
2497static void release_and_remap_vectors(cbm_gbuf_t *gb, const int64_t *temp_to_final,

Callers 1

cbm_gbuf_dump_to_sqliteFunction · 0.85

Calls 1

cbm_gmtime_rFunction · 0.85

Tested by

no test coverage detected