Class: Time
- Inherits:
-
Object
- Object
- Time
- Includes:
- DateAndTimeFormatting
- Defined in:
- merb-core/lib/merb-core/core_ext/time.rb,
merb-helpers/lib/merb-helpers/core_ext.rb
Overview
Declared to bypass a rubygems 1.3.2 bug :(
Class Method Summary (collapse)
Instance Method Summary (collapse)
Methods included from DateAndTimeFormatting
Class Method Details
+ (Object) today
3 4 5 6 |
# File 'merb-core/lib/merb-core/core_ext/time.rb', line 3 def self.today t = Time.now t - ((t.to_f + t.gmt_offset) % 86400) end |
Instance Method Details
- (Object) to_time
44 |
# File 'merb-helpers/lib/merb-helpers/core_ext.rb', line 44 def to_time; self; end |