Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/shoes/inspect.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) today



32
33
34
35
# File 'lib/shoes.rb', line 32

def Time.today
  t = Time.now
  t - (t.to_i % 86400)
end