MCPcopy Index your code
hub / github.com/jetify-com/devbox / shortDate

Function shortDate

internal/devbox/update.go:288–297  ·  view source on GitHub ↗
(rfc3339 string)

Source from the content-addressed store, hash-verified

286}
287
288func shortDate(rfc3339 string) string {
289 if rfc3339 == "" {
290 return ""
291 }
292 t, err := time.Parse(time.RFC3339, rfc3339)
293 if err != nil {
294 return ""
295 }
296 return t.Format("2006-01-02")
297}
298
299func useResolvedPackageInLockfile(
300 lockfile *lock.File,

Callers 2

describeFlakeUpdateFunction · 0.85
TestShortDateFunction · 0.85

Calls 1

FormatMethod · 0.45

Tested by 1

TestShortDateFunction · 0.68