Class: Time

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.construct(year, month = 1, day = 1, hour = 0, minute = 0, second = 0) ⇒ Object



107
108
109
110
# File 'lib/chronic.rb', line 107

def self.construct(year, month = 1, day = 1, hour = 0, minute = 0, second = 0)
  warn "Time.construct will be deprecated in version 0.7.0. Please use Chronic.construct instead"
  Chronic.construct(year, month, day, hour, minute, second)
end

Instance Method Details

#to_minidateObject



112
113
114
115
# File 'lib/chronic.rb', line 112

def to_minidate
  warn "Time.to_minidate will be deprecated in version 0.7.0. Please use Chronic::MiniDate.from_time(time) instead"
  Chronic::MiniDate.from_time(self)
end