Documentation ¶
Index ¶
- Constants
- func Day() int64
- func DayToStr(day int64, format string) string
- func DayToTime(day int64) int64
- func MilliSecond() int64
- func StrToDay(str string, format string) int64
- func StrToTime(str string, format string) int64
- func Time() int64
- func TimeToDay(sec int64) int64
- func TimeToStr(sec int64, format string) string
Constants ¶
View Source
const FORMAT_DAY_A = "2006-01-02"
yyyy-MM-dd
View Source
const FORMAT_DAY_B = "01/02/2006"
MM/dd/yyyy
View Source
const FORMAT_DAY_C = "20060102"
yyyyMMdd
View Source
const FORMAT_NOW_A = "2006-01-02 15:04:05"
yyyy-MM-dd hh:mm:ss
View Source
const FORMAT_NOW_B = "01/02/2006 15:04:05"
MM/dd/yyyy hh:mm:ss PM
View Source
const FORMAT_NOW_C = "20060102150405"
yyyyMMddhhmmss
Variables ¶
This section is empty.
Functions ¶
func MilliSecond ¶
func MilliSecond() int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.