Documentation
¶
Index ¶
- func Date(timestamp int64, timeLayout string) string
- func Diff(time1, time2 time.Time) (year, month, day, hour, minute, second int)
- func FormatRfcToLayout(rfcTime, layout string) (string, error)
- func NewDateTime(dateTime, timeLayout string) time.Time
- func RfcToLocalDatetime(rfcTime string) (string, error)
- func StrToTime(datetime, timeLayout string) int64
- func Time() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatRfcToLayout ¶
FormatRfcToLayout rfc时间格式化成指定的格式
func RfcToLocalDatetime ¶
RfcToLocalDatetime rfc时间格式转成Y-m-d H:i:s rfc格式:2003-10-30T00:00:00+08:00字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.