Sha256: ce07971835386342eec4256894d04bc51de9c3061b1e9c11a99cc1b1f846cfc7
Contents?: true
Size: 341 Bytes
Versions: 14
Compression:
Stored size: 341 Bytes
Contents
# frozen_string_literal: true module Montrose class Frequency class Monthly < Frequency def include?(time) matches_interval?((time.month - @starts.month) + (time.year - @starts.year) * 12) end def to_cron "#{@starts.min} #{@starts.hour} #{@starts.day} #{interval_str} *" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems