Class: Time

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

Instance Method Summary collapse

Instance Method Details

#at_midnightObject



2
3
4
# File 'lib/time_extensions.rb', line 2

def at_midnight
  Time.mktime(self.year, self.month, self.day, 0, 0, 0)
end