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

Method HasTimezone

internal/time.go:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (f TimeFormat) HasTimezone() bool {
26 // We don't include the formats with only named timezones, see
27 // https://github.com/golang/go/issues/19694#issuecomment-289103522
28 return f.Typ >= TimeFormatNumericTimezone && f.Typ <= TimeFormatNumericAndNamedTimezone
29}
30
31var TimeFormats = []TimeFormat{
32 // Keep common formats at the top.

Callers 1

TestTimeWithTimezonesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTimeWithTimezonesFunction · 0.64