Documentation ¶
Index ¶
- Constants
- func ChangeStrTimeToUTC(strTime string) time.Time
- func Format(time time.Time, layout string) string
- func FromTimestamp(timestamp int64) time.Time
- func FromUnix(unix int64) time.Time
- func GetCurrentTime() string
- func GetDay(time time.Time) int
- func GetTimeFromTimeStamp(timestamp int64) string
- func GetTimeStr() string
- func NowTimestamp() int64
- func NowUnix() int64
- func Parse(timeStr, layout string) (time.Time, error)
- func ParseTimestamp(value string) (time.Time, bool)
- func StringifyTime(t time.Time) string
- func Time2String(t time.Time) string
- func Timestamp(t time.Time) int64
- func WithTimeAsStartOfDay(t time.Time) time.Time
- type Time
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func ChangeStrTimeToUTC ¶
ChangeStrTimeToUTC 把字符串时间转换为UTC时间
func GetTimeFromTimeStamp ¶
func Time2String ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.