Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronMask ¶
type CronMask struct {
// contains filtered or unexported fields
}
CronMask interface exposes a method to check whether the given time.Time matches the expression CronMask was constructed with.
func New ¶
New constructs a new CronMask instance that can be used to check if a given time.Time matches the expression or not.
For CRON expressions (https://en.wikipedia.org/wiki/Cron#CRON_expression):
Expressions are expected to be in the same time zone as the system that generates the time.Time instances.
You can check the tests for what is possible.
Unsupported features:
- Non-standard characters (https://en.wikipedia.org/wiki/Cron#Non-standard_characters)
- Year field
- Command section
- Text representation of the fields "month" and "day of week"