Versions in this module Expand all Collapse all v0 v0.0.4 Feb 4, 2026 Changes in this version + func AddMonths(timeString string, deltaMonths int, layouts ...string) string + func AddWeeks(timeString string, deltaWeeks int, layouts ...string) string v0.0.3 Feb 4, 2026 Changes in this version + func AddDays(dateString string, deltaDays int) string v0.0.2 Feb 4, 2026 Changes in this version + func GetNextDay(dateString string) string v0.0.1 Jan 26, 2026 Changes in this version + var DefaultTimeLocation = time.FixedZone("CST", 8 * 3600) + var LayoutIsoDate = "2006-01-02" + func DeltaDays(t1, t2 time.Time) int + func FromUnixTime(ts int64, format string) string + func Get1stDayOfWeek() string + func GetBeginUnixTS(beginDate string) int64 + func GetBetweenDays(format, beginDate string, args ...string) ([]string, error) + func GetDayBeginTimeSince(ts int64, ndays int) time.Time + func GetDayEndTime(ndays int) time.Time + func GetDayEndTimeSince(ts int64, ndays int) time.Time + func GetEndUnixTS(endDate string) int64 + func GetMonthBeginTime(nmonth int) time.Time + func GetMonthBeginTimeSince(ts int64, nmonth int) time.Time + func GetMonthEndTime(nmonth int) time.Time + func GetMonthEndTimeSince(ts int64, nmonth int) time.Time + func GetYearBeginTime(nyear int) time.Time + func GetYearEndTime(nyear int) time.Time + func ToBeginEndTime(strBeginTime, strEndTime string) (time.Time, time.Time, error) + func ToDayBeginEndTime(strBeginDate, strEndDate string) (time.Time, time.Time, error) Other modules containing this package github.com/hdget/utils