tz.go 439 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package timezone_e

import "time"

type Timezone int

const (
	TimezoneBeijing Timezone = 0
	TimezoneKSA     Timezone = 1
)

var Timezones = []Timezone{TimezoneBeijing, TimezoneKSA}
var (
	BeijingTimezoneLoc = time.FixedZone("CST", 8*3600) // 东八
	KSATimezoneLoc     = time.FixedZone("CST", 3*3600) // 东三
)

var TimezoneLocMap = map[Timezone]*time.Location{
	TimezoneBeijing: BeijingTimezoneLoc,
	TimezoneKSA:     KSATimezoneLoc,
}