Documentation ¶
Index ¶
- Constants
- func Format(time time.Time, layout string) string
- func FromTimestamp(timestamp int64) time.Time
- func FromUnix(unix int64) time.Time
- func GetDay(time time.Time) int
- func NowTimestamp() int64
- func NowUnix() int64
- func Parse(timeStr, layout string) (time.Time, error)
- func Timestamp(t time.Time) int64
- func WithTimeAsStartOfDay(t time.Time) time.Time
Constants ¶
View Source
const ( FmtDate = "2006-01-02" FmtTime = "15:04:05" FmtDateTime = "2006-01-02 15:04:05" FmtDateTimeNoSeconds = "2006-01-02 15:04" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.