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



102
103
104
105
# File 'lib/chronic.rb', line 102

def self.construct(year, month = 1, day = 1, hour = 0, minute = 0, second = 0)
  warn "Chronic.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



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

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