Alex Brainman | 07ea243 | 2013-06-06 16:30:25 +1000 | [diff] [blame] | 1 | // Copyright 2013 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package time |
| 6 | |
Florian Uekermann | 7340d13 | 2017-09-18 19:22:29 +0200 | [diff] [blame] | 7 | func ForceAusFromTZIForTesting() { |
Alex Brainman | 07ea243 | 2013-06-06 16:30:25 +1000 | [diff] [blame] | 8 | ResetLocalOnceForTest() |
Florian Uekermann | 7340d13 | 2017-09-18 19:22:29 +0200 | [diff] [blame] | 9 | localOnce.Do(func() { initLocalFromTZI(&aus) }) |
| 10 | } |
| 11 | |
| 12 | func ForceUSPacificFromTZIForTesting() { |
| 13 | ResetLocalOnceForTest() |
| 14 | localOnce.Do(func() { initLocalFromTZI(&usPacific) }) |
Alex Brainman | 07ea243 | 2013-06-06 16:30:25 +1000 | [diff] [blame] | 15 | } |
Patrick Mezard | 51021cc | 2015-05-12 08:19:00 +0200 | [diff] [blame] | 16 | |
| 17 | func ToEnglishName(stdname, dstname string) (string, error) { |
| 18 | return toEnglishName(stdname, dstname) |
| 19 | } |