Class: Time

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

Class Method Summary collapse

Class Method Details

.todayObject



48
49
50
51
# File 'lib/shoes.rb', line 48

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