Documentation ¶
Overview ¶
*------------------------------------------------------------**
- @filename ctime/time.go
- @author jinycoo
- @version 1.0.0
- @date 2019-07-15 14:06
- @desc ctime - **------------------------------------------------------------*
Index ¶
Constants ¶
View Source
const ( PRCDiff = 28800 LayoutShortDate = "20060102" LayoutDate = "2006-01-02" LayoutDatetime = "2006-01-02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func TimeToMillis ¶
Types ¶
type ClassTime ¶
type ClassTime string
func (ClassTime) ParseDateFormat ¶
func (ClassTime) ParseDateUnix ¶
type Duration ¶
func (Duration) Shrink ¶
Shrink will decrease the duration by comparing with context's timeout duration and return new timeout\context\CancelFunc.
func (*Duration) UnmarshalText ¶
type JsonTime ¶
func (JsonTime) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.