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

Function formatTime

internal/cli/format.go:363–368  ·  view source on GitHub ↗
(value time.Time)

Source from the content-addressed store, hash-verified

361}
362
363func formatTime(value time.Time) string {
364 if value.IsZero() {
365 return ""
366 }
367 return value.UTC().Format(time.RFC3339)
368}
369
370func formatAge(now func() time.Time, then time.Time) string {
371 if then.IsZero() {

Callers 15

streamLogsFunction · 0.85
logsBundleFunction · 0.85
bundleActivationBundleFunction · 0.85
daemonStatusBundleFunction · 0.85
workspaceRecordBundleFunction · 0.85
workspaceListBundleFunction · 0.85
workspaceSessionRowsFunction · 0.85
bridgeListBundleFunction · 0.85
bridgeBundleFunction · 0.85
bridgeRoutesBundleFunction · 0.85
bridgeTargetsBundleFunction · 0.85

Calls 1

IsZeroMethod · 0.45

Tested by 1

TestFormatHelpersFunction · 0.68