Documentation
¶
Index ¶
- func FormatDate(unix int64) string
- func FormatDatetime(unix int64) string
- func FormatDatetimeShort(unix int64) string
- func FormatDuration(secs int64) string
- func FormatTime(unix int64) string
- func FormatTimeWith(unix int64, format string) string
- func Now() int64
- func NowInt() int
- func NowStr() string
- func ParseDate(date string) (time.Time, error)
- func ParseDateTimeShort(date string) (time.Time, error)
- func ParseTimeLocal(format, date string) (time.Time, error)
- func SqlNowDistance(name string) string
- func ThisDay() (time.Time, time.Time)
- func ThisMonth(month int) (time.Time, time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
func FormatDatetime ¶
func FormatDatetimeShort ¶
func FormatDuration ¶
func FormatTime ¶
func FormatTimeWith ¶
func ParseDateTimeShort ¶
format is 2006-01-02 15:04
func SqlNowDistance ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.