1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:34:41 -07:00
go/src/time
Michael Kasch 9f2c611fa7 time: add support for parsing timezones denoted by sign and offset
IANA Zoneinfo does not provide names for all timezones. Some are denoted
by a sign and an offset only. E.g: Europe/Turkey is currently +03 or
America/La_Paz which is -04 (https://data.iana.org/time-zones/releases/tzdata2018c.tar.gz)

Fixes #24071

Change-Id: I9c230a719945e1263c5b52bab82084d22861be3e
Reviewed-on: https://go-review.googlesource.com/98157
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-08 17:15:35 +00:00
..
example_test.go time: add example for FixedZone 2018-02-13 21:57:23 +00:00
export_android_test.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
export_test.go time: enable Location loading from user provided timezone data 2017-11-21 19:13:52 +00:00
export_windows_test.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
format_test.go time: add support for parsing timezones denoted by sign and offset 2018-03-08 17:15:35 +00:00
format.go time: add support for parsing timezones denoted by sign and offset 2018-03-08 17:15:35 +00:00
genzabbrs.go
internal_test.go time: enable Location loading from user provided timezone data 2017-11-21 19:13:52 +00:00
mono_test.go all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
sleep_test.go Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
sleep.go
sys_plan9.go time: unify three readFile implementations into one 2017-09-27 14:29:31 +00:00
sys_unix.go time: unify three readFile implementations into one 2017-09-27 14:29:31 +00:00
sys_windows.go time: unify three readFile implementations into one 2017-09-27 14:29:31 +00:00
tick_test.go
tick.go
time_test.go
time.go time: avoid unnecessary type conversions 2018-02-26 16:14:51 +00:00
zoneinfo_abbrs_windows.go
zoneinfo_android_test.go
zoneinfo_android.go time: fix build on Android 2017-11-21 19:44:00 +00:00
zoneinfo_ios.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
zoneinfo_plan9.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
zoneinfo_read.go time: enable Location loading from user provided timezone data 2017-11-21 19:13:52 +00:00
zoneinfo_test.go time: rename TestLoadLocationFromTzinfo to TestLoadLocationFromTZData 2017-11-21 21:13:15 +00:00
zoneinfo_unix.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
zoneinfo_windows_test.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
zoneinfo_windows.go time: reduce OS dependent timezone related code 2017-09-27 14:14:45 +00:00
zoneinfo.go all: use HTTPS for iana.org links 2018-02-13 18:36:48 +00:00