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

Function generate_iso_timestamp

src/graph_buffer/graph_buffer.c:1592–1599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1590}
1591
1592static void generate_iso_timestamp(char *buf, size_t buf_size) {
1593 time_t now = time(NULL);
1594 struct tm tm_buf;
1595 struct tm *tm_val = cbm_gmtime_r(&now, &tm_buf);
1596 if (strftime(buf, buf_size, "%Y-%m-%dT%H:%M:%SZ", tm_val) == 0) {
1597 snprintf(buf, buf_size, "1970-01-01T00:00:00Z");
1598 }
1599}
1600
1601/* Release lookup indexes then remap+sort+dedup vectors for the B-tree writer. */
1602static 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