Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DateFormat yyyy-MM-dd DateFormat = "2006-01-02" // DateTimeFormat yyyy-MM-dd HH:mm:ss DateTimeFormat = "2006-01-02 15:04:05" )
View Source
const (
FORMAT_ERROR = "format error"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crontab ¶
type Crontab struct {
// contains filtered or unexported fields
}
func NewCrontab ¶
create crontab jobs from args
type Timestamp ¶
Timestamp 解析json成毫秒
func (Timestamp) MarshalJSON ¶
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON 将时间戳字符串转换为时间
Click to show internal directories.
Click to hide internal directories.