timezone

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LOCATION *time.Location = time.FixedZone("CST", 8*3600) // 全局时区信息,东八区
)

Functions

This section is empty.

Types

type TimeZone

type TimeZone struct {
	Name   string `mapstructure:"name" json:"name" yaml:"name"`       // 时区名:CST,UTC
	Offset int    `mapstructure:"offset" json:"offset" yaml:"offset"` // 时区偏移量(秒)
}

func (TimeZone) Load

func (tz TimeZone) Load()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL