MCPcopy Create free account
hub / github.com/compozy/agh / parseMemoryTime

Function parseMemoryTime

internal/daemon/memory_runtime.go:1290–1304  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

1288}
1289
1290func parseMemoryTime(raw string) time.Time {
1291 value := strings.TrimSpace(raw)
1292 if value == "" {
1293 return time.Time{}
1294 }
1295 parsed, err := time.Parse(time.RFC3339Nano, value)
1296 if err == nil {
1297 return parsed.UTC()
1298 }
1299 parsed, err = time.Parse(time.RFC3339, value)
1300 if err == nil {
1301 return parsed.UTC()
1302 }
1303 return time.Time{}
1304}
1305
1306func intFromInt64(value int64) int {
1307 if value > int64(^uint(0)>>1) {

Callers 2

readExtractorFailureFunction · 0.85
readSessionLedgerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected