StringToDateInDefaultLocation casts an empty interface to a [time.Time], interpreting inputs without a timezone to be in the given location, or the local timezone if nil.
(s string, location *time.Location)
| 112 | // interpreting inputs without a timezone to be in the given location, |
| 113 | // or the local timezone if nil. |
| 114 | func StringToDateInDefaultLocation(s string, location *time.Location) (time.Time, error) { |
| 115 | return internal.ParseDateWith(s, location, internal.TimeFormats) |
| 116 | } |
searching dependent graphs…