Documentation ¶
Index ¶
- Constants
- func DayStart(t int64) int64
- func FormatDate(t int64, dateStyle string) string
- func FormatStyle(style string) string
- func FormatTime(t time.Time, format string) string
- func Milli() int64
- func MonthStart(t int64) int64
- func Nano() int64
- func NewTs(year int, month time.Month, day, hour, min, sec, nsec int) time.Time
- func NextMonth(t int64) int64
- func NowDayTime() time.Time
- func NowHourTime() time.Time
- func NowNormal() string
- func NowTo(dateStyle string) string
- func ParseTime(val string, format ...string) (time.Time, error)
- func ParseTimeNormal(t time.Time) string
- func StrToInt() int64
- func ToDayTime(t time.Time) time.Time
- func ToHourTime(t time.Time) time.Time
- func ToTimeStamp(t string, dateStyle string) int64
- func ToyyyyMM() string
- func ToyyyyMMInt() int32
- func ToyyyyMMIntByStamp(time int64) int32
- func ToyyyyMMdd() string
- func ToyyyyMMddHH() string
- func ToyyyyMMddHHInt() int32
- func ToyyyyMMddHHIntByStamp(time int64) int32
- func ToyyyyMMddHHmmss() string
- func ToyyyyMMddInt() int32
- func ToyyyyMMddIntByStamp(time int64) int32
Constants ¶
View Source
const ( FormatNormal = "2006-01-02 15:04:05" FormatNormalDate = "2006-01-02" )
View Source
const ( Millisecond int64 = 1 Second int64 = 1000 * Millisecond Minute int64 = 60 * Second Minute2 int64 = 2 * Minute Minute3 int64 = 3 * Minute Minute5 int64 = 5 * Minute Minute10 int64 = 10 * Minute Minute15 int64 = 15 * Minute Minute20 int64 = 20 * Minute Minute30 int64 = 30 * Minute Hour int64 = 60 * Minute Day int64 = 24 * Hour Week int64 = 7 * Day Month int64 = 30 * Day )
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
func FormatStyle ¶
func MonthStart ¶
func NowDayTime ¶
func NowHourTime ¶
func ParseTimeNormal ¶
func ToTimeStamp ¶
func ToyyyyMMInt ¶
func ToyyyyMMInt() int32
func ToyyyyMMIntByStamp ¶
func ToyyyyMMdd ¶
func ToyyyyMMdd() string
func ToyyyyMMddHH ¶
func ToyyyyMMddHH() string
func ToyyyyMMddHHInt ¶
func ToyyyyMMddHHInt() int32
func ToyyyyMMddHHIntByStamp ¶
func ToyyyyMMddHHmmss ¶
func ToyyyyMMddHHmmss() string
func ToyyyyMMddInt ¶
func ToyyyyMMddInt() int32
func ToyyyyMMddIntByStamp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.