Module: EcoRake::Utils::Timing

Defined in:
lib/eco-rake/utils/timing.rb

Instance Method Summary collapse

Instance Method Details

#today?(date) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/eco-rake/utils/timing.rb', line 4

def today?(date)
  date && date.strftime("%Y/%m/%d") == Time.now.strftime("%Y/%m/%d")
end