Documentation ¶
Index ¶
- Constants
- func CanUpdate(t time.Time) bool
- func CanUpdateTime() time.Time
- func DateZero(t time.Time) time.Time
- func Decimal(value float64) float64
- func DifferDays(t1, t2 time.Time) int
- func GOMAXPROCS(n ...int)
- func GetMonthDay() (string, string)
- func GetQuarterDay(months ...int) (string, string)
- func GetWeekDay() (string, string)
- func InitTag(t reflect.Type, tagName string) map[int]string
- func KLineRequireDays(currentDate, lastDay time.Time) int
- func NextUpdateTime(t time.Time) time.Time
- func ParseTime(timestr string) (time.Time, error)
- func Ratio[B stat.Number, C stat.Number](baseValue B, currentValue C) float64
- func UnixTime(timestamp int64) time.Time
- type RatioType
Constants ¶
View Source
const (
YearOnly = "2006"
)
Variables ¶
This section is empty.
Functions ¶
func DifferDays ¶ added in v1.3.22
DifferDays 计算天数差 从 t1 回到 t2 需要多少天
func GOMAXPROCS ¶ added in v1.3.22
func GOMAXPROCS(n ...int)
func GetQuarterDay ¶ added in v1.3.22
GetQuarterDay 获得当前季度的初始和结束日期
func KLineRequireDays ¶ added in v1.3.22
func NextUpdateTime ¶ added in v1.3.22
NextUpdateTime 下一个可以更新的日期
Types ¶
Click to show internal directories.
Click to hide internal directories.