mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-19 21:50:13 +08:00
20 lines
287 B
Go
20 lines
287 B
Go
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)
|
|
}
|