Versions in this module Expand all Collapse all v1 v1.0.4 Nov 13, 2023 v1.0.3 Jul 23, 2021 Changes in this version + type SolarTermData struct + Key float64 + Month int + Years [][]int v1.0.2 Jul 23, 2021 v1.0.1 Jul 13, 2021 v1.0.0 May 18, 2021 Changes in this version + type Lunar struct + Day int + IsLeap bool + Month int + Year int + type LunarSolarConverter struct + LunarMonthDays []int + Solar []int + func NewLunarSolarConverter() *LunarSolarConverter + func (l *LunarSolarConverter) GetBigInt(data int, length int, shift int) int + func (l *LunarSolarConverter) LunarToSolar(lunar Lunar) Solar + type RangeTimeEnum int + const AFTERNOON + const DAY_BREAK + const EARLY_MORNING + const LATE_NIGHT + const MID_NIGHT + const MORNING + const NIGHT + const NOON + type Result struct + NormalizedString string + Points []ResultPoint + Type ResultType + type ResultPoint struct + Length int + Pos int + Time time.Time + type ResultType string + const DELTA + const SPAN + const TIMESTAMP + type Solar struct + Day int + Month int + Year int + func NewSolarFromInt(g int) Solar + func (s Solar) ToInt() int + type SolorTermData struct + Key float64 + Month int + Years [][]int + type StringPreHandler struct + func (s StringPreHandler) DelKeyword(target string, rules string) string + func (s StringPreHandler) NumberTranslator(target string) string + func (s StringPreHandler) WordToNum(str string) int64 + type TimeNormalizer struct + func NewTimeNormalizer(isPreferFuture bool) *TimeNormalizer + func (n *TimeNormalizer) Parse(target string, timeBase time.Time) (*Result, error) + type TimePoint [6]int + var DefaultTimePoint TimePoint = [6]int{ ... } + func NewTimePointFromTime(t time.Time) TimePoint + func (t TimePoint) ToTime(loc *time.Location) time.Time + type TimeUnit struct + func NewTimeUnit(expTime string, pos int, length int, normalizer *TimeNormalizer, ...) *TimeUnit + func (t TimeUnit) Time() time.Time + func (t TimeUnit) ToResultPoint() ResultPoint