Documentation ¶
Index ¶
- Constants
- func Format(t time.Time, f TimeFormat) string
- func Time1Hour() time.Time
- func Time1Year() time.Time
- func Time3Minutes() time.Time
- func TimeStampMilliSecond() int64
- func TimeStampNanoSecond() int64
- func TimeStampSecond() int64
- func ToMilliNanoSecond(t time.Time) int64
- func ToMilliSecond(t time.Time) int64
- func ToSecond(t time.Time) int64
- func Watch() time.Duration
- type NormalTime
- type TimeFormat
Constants ¶
View Source
const ( DateTimeFormat TimeFormat = "2006-01-02 15:04:05" DateTimeTightFormat = "20060102150405" DateTimeSlashFormat = "2006/01/02 15:04:05" DateOnlyFormat = "2006-01-02" TimeOnlyFormat = "15:04:05" DateTimeDateOnlySlashFormat = "2006/01/02" )
Variables ¶
This section is empty.
Functions ¶
func Time3Minutes ¶ added in v1.1.0
func TimeStampMilliSecond ¶
func TimeStampMilliSecond() int64
func TimeStampNanoSecond ¶
func TimeStampNanoSecond() int64
func TimeStampSecond ¶
func TimeStampSecond() int64
func ToMilliNanoSecond ¶
func ToMilliSecond ¶
Types ¶
type NormalTime ¶ added in v1.1.0
func (NormalTime) MarshalJSON ¶ added in v1.1.0
func (t NormalTime) MarshalJSON() ([]byte, error)
func (NormalTime) String ¶ added in v1.1.0
func (t NormalTime) String() string
func (*NormalTime) UnmarshalJSON ¶ added in v1.1.0
func (t *NormalTime) UnmarshalJSON(data []byte) (err error)
type TimeFormat ¶
type TimeFormat = string
Click to show internal directories.
Click to hide internal directories.