Documentation ¶
Index ¶
- Constants
- 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 LimtUp(securityCode string, price float64) float64
- 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 GetQuarterDay ¶ added in v1.3.22
GetQuarterDay 获得当前季度的初始和结束日期
Types ¶
Click to show internal directories.
Click to hide internal directories.