gt_date

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrWeekDateRange

func GetCurrWeekDateRange() (startDate, endDate time.Time)

GetCurrWeekDateRange 获取当前周的日期范围 @return startDate time.Time 周的开始日期 @return endDate time.Time 周的结束日期

func GetLastWeekDateRange

func GetLastWeekDateRange() (startDate, endDate time.Time)

GetLastWeekDateRange 获取上周的日期范围 @return startDate time.Time 周的开始日期 @return endDate time.Time 周的结束日期

func GetWeekDateRange

func GetWeekDateRange(date time.Time) (startDate, endDate time.Time)

GetWeekDateRange 获取指定日期所在周的日期范围 @param date time.Time 指定日期 @return startDate time.Time 周的开始日期 @return endDate time.Time 周的结束日期

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL