Documentation
¶
Index ¶
- Variables
- type Mgr
- func (p *Mgr) GetDayStartTimestampFromTime(t *time.Time) int64
- func (p *Mgr) GetDayStartTimestampFromTimestamp(timestamp int64) int64
- func (p *Mgr) GetMillisecond() int64
- func (p *Mgr) GetTime() time.Time
- func (p *Mgr) GetTimestampOffset() int64
- func (p *Mgr) GetYMDFromTimestamp(timestamp int64) int
- func (p *Mgr) NowTime() time.Time
- func (p *Mgr) SetTimestampOffset(offset int64)
- func (p *Mgr) ShadowTimestamp() int64
- func (p *Mgr) Update()
Constants ¶
This section is empty.
Variables ¶
View Source
var GTimeMgr = NewMgr()
Functions ¶
This section is empty.
Types ¶
type Mgr ¶
type Mgr struct {
UTCSwitch xcontrol.ISwitchButton // UTC 时间开关
// contains filtered or unexported fields
}
Mgr 时间管理器
func (*Mgr) GetDayStartTimestampFromTime ¶
GetDayStartTimestampFromTime 当天开始时间戳
func (*Mgr) GetDayStartTimestampFromTimestamp ¶
GetDayStartTimestampFromTimestamp 返回给定时间戳所在天的开始时间戳
func (*Mgr) GetTimestampOffset ¶
GetTimestampOffset 获取 时间戳偏移量-秒
func (*Mgr) SetTimestampOffset ¶
SetTimestampOffset 设置 时间戳偏移量-秒
Click to show internal directories.
Click to hide internal directories.