Documentation ¶
Index ¶
- Constants
- func Day(offset ...int) time.Time
- func DayHead(offset ...int) time.Time
- func DayTail(offset ...int) time.Time
- func Month(offset ...int) time.Time
- func MonthHead(offset ...int) time.Time
- func MonthTail(offset ...int) time.Time
- func Now() time.Time
- func Parse(layout string, value string) (time.Time, error)
- func Today() time.Time
- func Tomorrow() time.Time
- func Transform(t time.Time, rule ...[]TransformRule) string
- func Unix(sec, nsec int64) time.Time
- func UnixMicro(usec int64) time.Time
- func UnixMilli(msec int64) time.Time
- func UnixNano(nsec int64) time.Time
- func Week(offset ...int) time.Time
- func WeekHead(offset ...int) time.Time
- func WeekTail(offset ...int) time.Time
- func Yesterday() time.Time
- type TransformRule
Constants ¶
View Source
const ( TimeLayout = "15:04:05" DateLayout = "2006-01-02" DatetimeLayout = "2006-01-02 15:04:05" TimeFormat = "H:i:s" DateFormat = "Y-m-d" DatetimeFormat = "Y-m-d H:i:s" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TransformRule ¶
Click to show internal directories.
Click to hide internal directories.