Documentation ¶
Index ¶
- func Get64TimeStamp(nYear, nMonth, nDay, nHour, nMinute, nSecond int) int64
- func Get64TimeStampFromDate(dt TDate) int64
- func GetAllDays(nYear, nMonth, nDay int) int
- func GetBasicDays(nYear, nMonth, nDay int) int
- func GetCalendarType(nYear, nMonth, nDay int) int
- func GetDateFrom64TimeStamp(nTimeStamp int64) TDate
- func GetDateIsValid(nYear, nMonth, nDay int) bool
- func GetDiffDate(nYear1, nMonth1, nDay1, nHour1, nMinute1, nSecond1 int, nDiffSecond int64) (int, int, int, int, int, int)
- func GetDiffDate2(dt1 TDate, nDiffSecond int64) TDate
- func GetDiffDays(nYear1, nMonth1, nDay1, nYear2, nMonth2, nDay2 int) int
- func GetDiffDays2(dt1 TDate, dt2 TDate) int
- func GetDiffSeconds(nYear1, nMonth1, nDay1, nHour1, nMinute1, nSecond1 int, ...) int64
- func GetDiffSeconds2(dt1 TDate, dt2 TDate) int64
- func GetGanZhiFromDay(nAllDays int) int
- func GetGanZhiFromHour(nHour, nGan int) (int, int)
- func GetIsLeapYear(nYear int) bool
- func GetLeapDays(nYear, nMonth, nDay int) int
- func GetMonthDays(nYear, nMonth int) int
- func GetMonthFrom64TimeStamp(nTimeStamp int64, nYear int) (int, int64)
- func GetYearFrom64TimeStamp(nTimeStamp int64) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get64TimeStamp ¶
获取64位时间戳
func GetDiffDate ¶
func GetDiffDate(nYear1, nMonth1, nDay1, nHour1, nMinute1, nSecond1 int, nDiffSecond int64) (int, int, int, int, int, int)
根据秒数, 得到新的差异的天数
func GetDiffDays ¶
得到两个天数之间的差值
func GetDiffSeconds ¶
func GetDiffSeconds(nYear1, nMonth1, nDay1, nHour1, nMinute1, nSecond1 int, nYear2, nMonth2, nDay2, nHour2, nMinute2, nSecond2 int) int64
得到两个天数之间的秒数差距
func GetGanZhiFromHour ¶
获得某公历时的天干地支,0-59 对应 甲子到癸亥
func GetMonthFrom64TimeStamp ¶
从64位时间戳反推月, 返回月份和剩余时间戳
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.