Documentation
¶
Index ¶
- Constants
- func Current() string
- func CurrentDate() string
- func CurrentMicros() int64
- func CurrentMillis() int64
- func CurrentTime() string
- func CurrentUnix() int64
- func DateString(t time.Time) string
- func DateTimeString(t time.Time) string
- func StrParseToTime(t string, location ...time.Location) (time.Time, error)
- func TimeString(t time.Time) string
Constants ¶
View Source
const ( DateTimeLayout = "2006-01-02 15:04:05" // time.DateTime DateLayout = "2006-01-02" // time.DateOnly TimeLayout = "15:04:05" // time.TimeOnly )
Variables ¶
This section is empty.
Functions ¶
func CurrentDate ¶
func CurrentDate() string
func CurrentTime ¶
func CurrentTime() string
func CurrentUnix ¶
func CurrentUnix() int64
func DateString ¶
func DateTimeString ¶
func StrParseToTime ¶
StrParseToTime return time of string
func TimeString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.