Documentation ¶
Index ¶
- Variables
- func GetAgeWithIdentificationNumber(idCard string) int
- func GetDateStartOrEndUnixTime(unix int64, needMilliTime bool) (int64, int64)
- func GetMonthMaxDay(year, month int) int
- func GetMonthStartAndEndUnixTime(unix int64) (int64, int64)
- func GetWeekDay(unix int64) int
- func GetWeekDayStr(unix int64) string
- func GetYearStartAndEndUnixTime(unix int64) (int64, int64)
- func IsThisMonth(unix int64) bool
- func IsThisWeek(unix int64) bool
- func IsToday(unix int64) bool
- func IsYesterday(unix int64) bool
- func Substr(str string, start, length int) string
- type MonthWeek
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxDayOfMonth = map[int]int{
1: 31,
2: 29,
3: 31,
4: 30,
5: 31,
6: 30,
7: 31,
8: 31,
9: 30,
10: 31,
11: 30,
12: 31,
}
)
Functions ¶
func GetDateStartOrEndUnixTime ¶
获取指定天的开始或结束的时间戳 flag 1 startTime 2 endTime unix 输入的时间戳
func GetMonthStartAndEndUnixTime ¶
获取指定月的开始和结束的时间戳 unix 输入的时间戳
func GetWeekDay ¶ added in v0.1.60
func GetWeekDayStr ¶ added in v0.1.60
func GetYearStartAndEndUnixTime ¶ added in v0.1.53
获取指定年的开始和结束的时间戳 unix 输入的时间戳
Types ¶
Click to show internal directories.
Click to hide internal directories.