GoCollections/util/time/zoneinfo.go

20 lines
287 B
Go
Raw Normal View History

2023-04-26 17:15:33 +08:00
package time
import (
"time"
)
type Location = time.Location
var UTC = time.UTC
var Local = time.Local
func FixedZone(name string, offset int) *Location {
return time.FixedZone(name, offset)
}
func LoadLocation(name string) (*Location, error) {
return time.LoadLocation(name)
}