-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstant.go
More file actions
27 lines (24 loc) · 980 Bytes
/
constant.go
File metadata and controls
27 lines (24 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package timeexpression
import "errors"
var (
// ErrDateTimeFormat 年月日时表达格式不对
ErrDateTimeFormat = errors.New("date time format not math")
// ErrYearFormat 年的表达式格式不对
ErrYearFormat = errors.New("year format not math")
// ErrMonthFormat 月的表达式格式不对
ErrMonthFormat = errors.New("month format not math")
// ErrDayFormat 日的表达式格式不对
ErrDayFormat = errors.New("day format not math")
// ErrHourUnitFormat 时分秒的表达式格式不对
ErrHourUnitFormat = errors.New("hour unit format not math")
// ErrAlwaysActiveNoStartTime 表达式总是有效,所以没有开始时间
ErrAlwaysActiveNoStartTime = errors.New("expression always active, no start time")
// ErrOutOfDate 超过了表达式的时间范围
ErrOutOfDate = errors.New("expression is out of date")
// ErrNoEnd 没有结束范围
ErrNoEnd = errors.New("expression is no end time")
)
const (
// 支持的最大年份
MaxYear = 9999
)