const rules = {
meetup: 'after_offset_of:4,months'
}
// or
const rules = {
meetup: [
rule('after_offset_of', [4, 'months'])
]
}
Ensures the date is after a given offset of a given
time period. The period
can be defined using
following properties.
years
quarters
months
weeks
days
hours
minutes
seconds
milliseconds
const rules = {
meetup: 'after_offset_of:4,months'
}
// or
const rules = {
meetup: [
rule('after_offset_of', [4, 'months'])
]
}
For customized build, you can import this rule as follows.
import { afterOffsetOf } from 'indicative/builds/validations'