class Montrose::Frequency::Monthly
Public Instance Methods
include?(time)
click to toggle source
# File lib/montrose/frequency/monthly.rb, line 6 def include?(time) matches_interval?((time.month - @starts.month) + (time.year - @starts.year) * 12) end
to_cron()
click to toggle source
# File lib/montrose/frequency/monthly.rb, line 10 def to_cron "#{@starts.min} #{@starts.hour} #{@starts.day} #{interval_str} *" end