Documentation ¶
Index ¶
- func ChangeTimeToYMDStr(date *time.Time) string
- func CheckDateFormat(date string) bool
- func ComputeDayThisMonth() int64
- func ComputeSubDay(startTime, endTime string) int64
- func CurrentTimeHI() string
- func CurrentTimeHIS() string
- func CurrentTimeYMD() string
- func CurrentTimeYMDHIS() string
- func CurrentTimeYMDHISPure() string
- func CurrentTimeYMDHISTime() *time.Time
- func FormatTimeYMD(timestamp int64) string
- func FormatTimeYMGHIS(timestamp int64) string
- func FormatUTCTimeYMGHIS(timestamp string) string
- func GetBetweenDates(sdate, edate string) []string
- func GetBetweenMonth(sdate, edate string) []string
- func GetBetweenTimes(stime, etime string) []string
- func GetFirstDateOfMonth(d time.Time) time.Time
- func GetFirstDateOfWeek() (weekMonday string)
- func GetLastDateOfMonth(d time.Time) time.Time
- func GetYMDByCurrentDays(days int) string
- func GetZeroTime(d time.Time) time.Time
- func MonthInterval() (first, last string)
- func ParseInLocation(strTime string) string
- func Sub8HoursTime(strTime string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentTimeYMDHISPure ¶
func CurrentTimeYMDHISPure() string
func GetBetweenDates ¶
GetBetweenDates 根据开始日期和结束日期计算出时间段内所有日期 参数为日期格式,如:2020-01-01
func GetFirstDateOfMonth ¶
获取传入的时间所在月份的第一天,即某月第一天的0点。如传入time.Now(), 返回当前月份的第一天0点时间。
func GetLastDateOfMonth ¶
获取传入的时间所在月份的最后一天,即某月最后一天的0点。如传入time.Now(), 返回当前月份的最后一天0点时间。
func GetYMDByCurrentDays ¶
通过制定天数,查看基于当前日期的天数 days为负数表示前几天 days为正数表示后几天
func MonthInterval ¶
func MonthInterval() (first, last string)
func Sub8HoursTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.