Files
supercronic/crontab/types.go
Thomas Orozco 907ac7f3d3 Support CRON_TZ
Like it says in the title. This adds support for CRON_TZ.

Fixes: #77
2020-11-14 18:06:52 +00:00

32 lines
395 B
Go

package crontab
import (
"time"
)
type Expression interface {
Next(fromTime time.Time) time.Time
}
type CrontabLine struct {
Expression Expression
Schedule string
Command string
}
type Job struct {
CrontabLine
Position int
}
type Context struct {
Shell string
Environ map[string]string
Timezone *time.Location
}
type Crontab struct {
Jobs []*Job
Context *Context
}