Documentation ¶
Index ¶
- Constants
- func DayString2Timestamp(date string) (uint64, error)
- func GetDateDay(date uint64) int
- func GetDateMonth(date uint64) int
- func GetDateQuarter(date uint64) int
- func GetDateWeek(date uint64) int
- func GetDateWeekDay(date uint64) int
- func GetDateYear(date uint64) int
- func GetDayTimestamp(date uint64) uint64
- func GetNowString() string
- func GetTodayInt() int
- func GetTodayString() string
- func SecondString2Timestamp(date string) (uint64, error)
- func Tick() int64
- func Timestamp2DayString(ts uint64) string
- func Timestamp2SecondString(ts uint64) string
- func ToDayInt(t time.Time) int
- func ToDayString(t time.Time) string
Constants ¶
View Source
const DAY_FORMAT = "20060102"
View Source
const DAY_MILLISECONDS = 24 * 60 * 60 * 1000
View Source
const SECOND_FORMAT = "20060102 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func DayString2Timestamp ¶
func GetDateDay ¶
func GetDateMonth ¶
func GetDateQuarter ¶
func GetDateWeek ¶
func GetDateWeekDay ¶
func GetDateYear ¶
func GetDayTimestamp ¶
func GetNowString ¶
func GetNowString() string
func GetTodayInt ¶
func GetTodayInt() int
func GetTodayString ¶
func GetTodayString() string
func SecondString2Timestamp ¶
func Timestamp2DayString ¶
func Timestamp2SecondString ¶
func ToDayString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.