()
| 23 | } |
| 24 | |
| 25 | func (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 | |
| 31 | var TimeFormats = []TimeFormat{ |
| 32 | // Keep common formats at the top. |
no outgoing calls