mirror of
https://github.com/golang/go
synced 2024-11-18 23:44:43 -07:00
7340d13977
Loading and testing timezones is currently implemented using several, partly redundant, OS specific data structures and functions. This change merges most of that code into OS independent implementations. Change-Id: Iae2877c5f48d1e4a9de9ce55d0530d52e24cf96e Reviewed-on: https://go-review.googlesource.com/64391 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
20 lines
514 B
Go
20 lines
514 B
Go
// Copyright 2013 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package time
|
|
|
|
func ForceAusFromTZIForTesting() {
|
|
ResetLocalOnceForTest()
|
|
localOnce.Do(func() { initLocalFromTZI(&aus) })
|
|
}
|
|
|
|
func ForceUSPacificFromTZIForTesting() {
|
|
ResetLocalOnceForTest()
|
|
localOnce.Do(func() { initLocalFromTZI(&usPacific) })
|
|
}
|
|
|
|
func ToEnglishName(stdname, dstname string) (string, error) {
|
|
return toEnglishName(stdname, dstname)
|
|
}
|