Versions in this module Expand all Collapse all v1 v1.0.2 Oct 19, 2024 Changes in this version + const HalfOffset + const TimeOffset + func DaysBetweenTimestamps(timezone string, timestamp int64) (int, error) + func GetCurDayHalfTimeFormat() string + func GetCurDayHalfTimestamp() int64 + func GetCurDayZeroTimeFormat() string + func GetCurDayZeroTimestamp() int64 + func GetCurrentTimeFormatted() string + func GetCurrentTimestampByMill() int64 + func GetCurrentTimestampByNano() int64 + func GetCurrentTimestampBySecond() int64 + func GetTimeStampByFormat(datetime string) string + func GetTimestampByTimezone(timezone string) (int64, error) + func IsNthDayCycle(timezone string, startTimestamp int64, n int) (bool, error) + func IsNthMonthCycle(timezone string, startTimestamp int64, n int) (bool, error) + func IsNthWeekCycle(timezone string, startTimestamp int64, n int) (bool, error) + func IsSameDayOfMonth(timezone string, timestamp int64) (bool, error) + func IsSameWeekday(timezone string, timestamp int64) (bool, error) + func IsWeekday(timestamp int64) bool + func TimeStringFormatTimeUnix(timeFormat string, timeSrc string) int64 + func TimeStringToTime(timeString string) (time.Time, error) + func TimeToString(t time.Time) string + func UnixMillSecondToTime(millSecond int64) time.Time + func UnixNanoSecondToTime(nanoSecond int64) time.Time + func UnixSecondToTime(second int64) time.Time