ToTimeE any value to a [time.Time] type.
(i any)
| 17 | |
| 18 | // ToTimeE any value to a [time.Time] type. |
| 19 | func ToTimeE(i any) (time.Time, error) { |
| 20 | return ToTimeInDefaultLocationE(i, time.UTC) |
| 21 | } |
| 22 | |
| 23 | // ToTimeInDefaultLocationE casts an empty interface to [time.Time], |
| 24 | // interpreting inputs without a timezone to be in the given location, |
searching dependent graphs…