Documentation ¶
Overview ¶
Package gtbox_time 时间相关工具
Index ¶
- func GTDateEqualYearMoonDay(date1, date2 time.Time) bool
- func GTDateEqualYearMoonDayHours(date1, date2 time.Time) bool
- func GTDateGetNowYearMoonDay() string
- func GTDateGetYearMoonDayFromTime(aTime time.Time) string
- func GTGetTodayCustomHoursAndMinuteWithBeijing(aHours int, aMinute int) time.Time
- func GTToolsTimeGetCurrentTimeWithUTC() time.Time
- func GTToolsTimeStringCovertToUTCTime(timeString string) time.Time
- func GTToolsTimeUTCCovertToBeijing(inTime time.Time) time.Time
- func GTToolsTimesGetBeijingTime() time.Time
- func GTToolsTimestampCovertToBeijing(timestamp float64) time.Time
- func GTToolsTimestampCovertToUTC(timestamp float64) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GTDateEqualYearMoonDay ¶
func GTDateGetNowYearMoonDay ¶
func GTDateGetNowYearMoonDay() string
GTDateGetNowYearMoonDay 获取当前年月日字符串 时间格式为"2006-01-02"
func GTDateGetYearMoonDayFromTime ¶
GTDateGetYearMoonDayFromTime 获取当前年月日字符串 时间格式为"2006-01-02"
func GTGetTodayCustomHoursAndMinuteWithBeijing ¶
GTGetTodayCustomHoursAndMinuteWithBeijing 获取北京时间今天指定的小时、分钟
func GTToolsTimeGetCurrentTimeWithUTC ¶ added in v0.0.51
GTToolsTimeGetCurrentTimeWithUTC 时间字符串 转 UTC时间
func GTToolsTimeStringCovertToUTCTime ¶
GTToolsTimeStringCovertToUTCTime 时间字符串 转 UTC时间
func GTToolsTimeUTCCovertToBeijing ¶
GTToolsTimeUTCCovertToBeijing UTC时间 转 北京时间
func GTToolsTimesGetBeijingTime ¶
GTToolsTimesGetBeijingTime 普通时间 转 北京时间
func GTToolsTimestampCovertToBeijing ¶
GTToolsTimestampCovertToBeijing 通过时间戳获取北京时间支持10位、13位时间戳
func GTToolsTimestampCovertToUTC ¶ added in v0.1.59
GTToolsTimestampCovertToUTC 通过时间戳获取 UTC 时间支持10位、13位时间戳
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.