Versions in this module Expand all Collapse all v1 v1.0.1 Aug 12, 2024 Changes in this version + const Custom + const DateFormat + const DateFormatDash + const DateFormatMin + const DateFormatSlash1 + const DateFormatSlash2 + const DateFormatSlash3 + const DateFormatSlash4 + const DateFormatTime + const DateFormatTime2 + const DateTimeFormatISO + const DateTimeFormatUTC + const DateTimeFormatUTC2 + const Day + const Month + const PeriodCurrent + const PeriodPrevious + const TimeFormatDash1 + const TimeFormatDash2 + const TimeFormatSlash + const TimeZoneAsiaBangkok + const Week + const Year + func CalcEndOfMonth(date time.Time) time.Time + func ConvertDdMmYyyyBy(date string, layout string) string + func Date() (int, time.Month, int) + func EndOfMonth(date time.Time) int + func Format(year int, m time.Month, d int) string + func FromTimestamp(timestamp int64, tz *time.Location) time.Time + func FromTimestampGMT7(timestamp int64) time.Time + func GetFebruaryLastOfMonth() + func GetTimeZone(zone string) *time.Location + func GetWeekday(date time.Time) string + func IsIntervalElapsed(location string, timestamp time.Time, updatedAt time.Time, interval int64) (time.Time, bool) + func IsWorkday(date time.Time) bool + func IsWorkdayBy(date string, layout string) (bool, error) + func IsYyyyMm(month string, format string) bool + func MonthsToDays(months int) int + func NextDay(day int) time.Time + func Now() time.Time + func NowWithoutTime() time.Time + func Parse(date string) (time.Time, error) + func ParseBy(date string, layout string) (time.Time, error) + func ParseByGMT7(date string, layout string, utc ...bool) (time.Time, error) + func ParseByLocation(date string, layout string, tz string, utc ...bool) (time.Time, error) + func ParseByYmDash(ym string) (time.Time, error) + func ParseByYyyyMm(month string, format string) time.Time + func ParseDdMmYyyy(date string) (string, error) + func ParseEndOfDay(date string) (time.Time, error) + func ParseStartOfDay(date string) (time.Time, error) + func PrevDay(num int) time.Time + func PrevMonth(num int) time.Time + func PrevYear(num int) time.Time + func SubDay(currentDate time.Time, day int) time.Time + func SubMonth(t time.Time, num int) time.Time + func TimeNow() *now.Now + func TimeNowFormat(zone string, format string) string + func UtcToGmt7(utcTime time.Time) time.Time + func Validate(date string, layout string) bool + func ValidateDateFormatDash(dateTime string) bool + func ValidateDateFormatSlash3(dateTime string) bool v1.0.0 Mar 4, 2024