Class: Time

Inherits:
Object show all
Defined in:
lib/merb-core/core_ext/time.rb

Overview

Declared to bypass a rubygems 1.3.2 bug :(

Class Method Summary collapse

Class Method Details

.todayObject



3
4
5
6
# File 'lib/merb-core/core_ext/time.rb', line 3

def self.today
  t = Time.now
  t - ((t.to_f + t.gmt_offset) % 86400)
end