xtime

package
v0.0.0-...-b941d56 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllDateFromStartToEnd

func GetAllDateFromStartToEnd(startDate string, endDate string, format ...string) (re []string)

GetAllDateFromStartToEnd 从给定的开始时间和结束时间获取所有日期

func GetAssignDayBegin

func GetAssignDayBegin(assignDay string) *gtime.Time

GetAssignDayBegin 指定日期当天的开始时间

func GetAssignDayEnd

func GetAssignDayEnd(assignDay string) *gtime.Time

GetAssignDayEnd 指定日期当天的结束时间

func GetLastMonthBegin

func GetLastMonthBegin() int64

GetLastMonthBegin 上月开始

func GetLastMonthEnd

func GetLastMonthEnd() int64

GetLastMonthEnd 上月结束

func GetLastMonthStartEnd

func GetLastMonthStartEnd(t time.Time) (time.Time, time.Time)

GetLastMonthStartEnd 指定时间的上一个月的开始、结束时间

func GetLastWeekBegin

func GetLastWeekBegin() int64

GetLastWeekBegin 上周开始

func GetLastWeekEnd

func GetLastWeekEnd() int64

GetLastWeekEnd 上周结束

func GetMonthBegin

func GetMonthBegin() int64

GetMonthBegin 本月开始

func GetMonthEnd

func GetMonthEnd() int64

GetMonthEnd 本月结束

func GetMonthStartEnd

func GetMonthStartEnd(t time.Time) (time.Time, time.Time)

GetMonthStartEnd 获取指定时间所在月的开始 结束时间

func GetNetworkTime

func GetNetworkTime() (time.Time, error)

GetNetworkTime 获取当前网络时间

func GetNow

func GetNow() *gtime.Time

GetNow 获取时间对象单例

func GetNowFormat

func GetNowFormat(format string) string

GetNowFormat 按格式获取当前时间

func GetNowTime

func GetNowTime() int64

GetNowTime 当前时间戳

func GetTimeStampByTimeStr

func GetTimeStampByTimeStr(timeStr string) int64

GetTimeStampByTimeStr GetTimeStampByDateStr 根据日期字符串获取时间戳

func GetTodayBegin

func GetTodayBegin() int64

GetTodayBegin 今天开始时间

func GetTodayEnd

func GetTodayEnd() int64

GetTodayEnd 今天结束时间

func GetWeekBegin

func GetWeekBegin() int64

GetWeekBegin 本周开始时间戳

func GetWeekEnd

func GetWeekEnd() int64

GetWeekEnd 本周结束时间戳

func GetYearMonthDay

func GetYearMonthDay(t *gtime.Time, yearFormat string, monthFormat string, dayFormat string) (string, string, string)

GetYearMonthDay 指定时间的年月日

func GetYesterdayBegin

func GetYesterdayBegin() int64

GetYesterdayBegin 昨天开始时间戳

func GetYesterdayEnd

func GetYesterdayEnd() int64

GetYesterdayEnd 昨天结束时间戳

Types

This section is empty.

Jump to

Keyboard shortcuts

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