xtime

package
v0.0.0-...-cb352a8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompTime

func CompTime(t1, t2 int64) int64

func GetMonthDays

func GetMonthDays(year int, month int) int

func GetMonthDaysByString

func GetMonthDaysByString(str string) int

func GetYearMonthDays

func GetYearMonthDays(year int, month int) int

GetYearMonthDays 获取当月的天数

func GetYearMonthDaysByString

func GetYearMonthDaysByString(d string) int

GetYearMonthDaysByString 获取当月的天数

func GetYearMonthToday

func GetYearMonthToday(year int, month int) int

func GetYearMonthTodayByString

func GetYearMonthTodayByString(d string) int

func NextMonth

func NextMonth(year int, month int) (int, int)

func NextMonthByString

func NextMonthByString(d string) string

func NowTimeString

func NowTimeString(args ...int) string

func PrevMonth

func PrevMonth(year int, month int) (int, int)

func Str2Time

func Str2Time(str string, utc ...int) int64

func Str2TimeGo

func Str2TimeGo(str string, utc ...int) time.Time

func StrRFC11232Time

func StrRFC11232Time(str string) int64

func Time2Str

func Time2Str(t int64, args ...int) string

func Time2StrRFC1123

func Time2StrRFC1123(t int64, timezone ...string) string

func Time2StrShort

func Time2StrShort(t int64, args ...int) string

func TimeFromUnix

func TimeFromUnix(t int64) time.Time

func UnixTime

func UnixTime() int64

func UnixTimeMilli

func UnixTimeMilli() int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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