MCPcopy Create free account
hub / github.com/cli/cli / timestamp

Function timestamp

pkg/cmd/issue/artifact/view/view.go:337–342  ·  view source on GitHub ↗

timestamp returns t in RFC 3339 format, or an empty string for a null time.

(t *time.Time)

Source from the content-addressed store, hash-verified

335
336// timestamp returns t in RFC 3339 format, or an empty string for a null time.
337func timestamp(t *time.Time) string {
338 if t == nil {
339 return ""
340 }
341 return t.Format(time.RFC3339)
342}

Callers 1

printRawArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected