Documentation
¶
Index ¶
- Constants
- func Beyond2DayUtilNow(t time.Time) bool
- func CurrentMonth() time.Time
- func EndOfDate(t time.Time) time.Time
- func EndOfMonth(t time.Time) time.Time
- func EndOfThisMonth() time.Time
- func EndOfThisWeek() time.Time
- func EndOfThisYear() time.Time
- func EndOfToday() time.Time
- func EndOfWeek(t time.Time) time.Time
- func EndOfYear(t time.Time) time.Time
- func FormarTime(date time.Time) string
- func FormatDate(date time.Time) string
- func In1Day(t time.Time) bool
- func JumpWeekend(r time.Time) time.Time
- func NDaysAfter(n int) time.Time
- func PrevMonth(n time.Time) time.Time
- func StartOfDate(t time.Time) time.Time
- func StartOfMonth(t time.Time) time.Time
- func StartOfThisMonth() time.Time
- func StartOfThisWeek() time.Time
- func StartOfThisYear() time.Time
- func StartOfToday() time.Time
- func StartOfWeek(t time.Time) time.Time
- func StartOfYear(t time.Time) time.Time
- func TimeAfterIgnoreWeekend(start time.Time, delta time.Duration) time.Time
- func ToDate(str string) (time.Time, error)
- func ToDateTime(str string) time.Time
- func ToDayTimestamp(str string) int64
- func ToTimestamp(str string) int64
- func UtilDayEnd() int64
Constants ¶
View Source
const ( YYYY_MM_DD = "2006-01-02" YYYY_MM_DD_HH_MM_SS = "2006-01-02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func Beyond2DayUtilNow ¶
Beyond2DayUtilNow 时间距离现在超过2天,即中间至少断了1天
func CurrentMonth ¶
当前月一号 Deprecated: use datetime.StartOfThisMonth instead
func EndOfThisMonth ¶
func EndOfThisWeek ¶
func EndOfThisYear ¶
func EndOfToday ¶
func FormarTime ¶
func FormatDate ¶
func NDaysAfter ¶
func StartOfThisMonth ¶
func StartOfThisWeek ¶
func StartOfThisYear ¶
func StartOfToday ¶
func TimeAfterIgnoreWeekend ¶
func ToDateTime ¶
func ToDayTimestamp ¶
func ToTimestamp ¶
func UtilDayEnd ¶
func UtilDayEnd() int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.