MCPcopy
hub / github.com/spf13/cast / ToTime

Function ToTime

zz_generated.go:20–23  ·  view source on GitHub ↗

ToTime casts any value to a(n) time.Time type.

(i any)

Source from the content-addressed store, hash-verified

18
19// ToTime casts any value to a(n) time.Time type.
20func ToTime(i any) time.Time {
21 v, _ := ToTimeE(i)
22 return v
23}
24
25// ToTimeInDefaultLocation casts any value to a(n) time.Time type.
26func ToTimeInDefaultLocation(i any, location *time.Location) time.Time {

Callers

nothing calls this directly

Calls 1

ToTimeEFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…