Documentation ¶
Index ¶
- Variables
- func EndOfDay(in int64) time.Time
- func GetMSec() int64
- func GetNano() int64
- func GetNow() int64
- func GetNowTime() time.Time
- func GetSinceDayFromTimeStr(in uint64) int64
- func GetTime(tm int64) time.Time
- func GetWeek() uint32
- func IsSameDay(a, b int64) bool
- func IsSameWeek(a, b int64) bool
- func ParseTimeToUnixTime(in string) uint64
- func SetLocation(hour int)
- func SetTimeInterval(in int64)
- func StartOfDay(in int64) time.Time
- func WeekEnd(in int64) time.Time
- func WeekStart(in int64) time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Interval int64 = 0 Location = time.FixedZone("CST", 8*60*60) //东八区 )
Functions ¶
func GetNowTime ¶
func GetSinceDayFromTimeStr ¶
func IsSameWeek ¶
func SetLocation ¶
func SetLocation(hour int)
func SetTimeInterval ¶
func SetTimeInterval(in int64)
func StartOfDay ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.