Class: Time

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

Class Method Summary collapse

Class Method Details

.todayObject



41
42
43
44
# File 'lib/shoes.rb', line 41

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