util

package
v0.0.0-...-d296f3d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDateNumberVal

func GetDateNumberVal(t time.Time) int

GetDateNumberVal 获取日期数值, 如: 20060102

func GetDayMask

func GetDayMask(t time.Time) uint32

GetDayMask 获取当天日期 bitmap 掩码

func GetDaysOfMonthInYear

func GetDaysOfMonthInYear(year int) []int

GetDaysOfMonthInYear 获取当前年份每月的天数

func GetDaysOfYearmonth

func GetDaysOfYearmonth(yearmonth int) int

GetDaysOfYearmonth 获取当前年月的天数

func GetYearmonth

func GetYearmonth(t time.Time) int

GetYearmonth 获取年月数值, 如: 200601

Types

type YearType

type YearType int
const (
	YearTypeLeap  YearType = iota // 闰年
	YearTypePeace                 // 平年
)

Jump to

Keyboard shortcuts

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