module TimeFeature

Constants

VERSION

Public Instance Methods

to_second() click to toggle source
# File lib/TimeFeature/time_extra_method.rb, line 2
def to_second
  # 86399-(self.seconds_until_end_of_day)
  self.hour*3600 + self.min*60 + self.sec
end
to_time() click to toggle source
# File lib/TimeFeature/integer_extra_method.rb, line 2
def to_time
  format("%02d:%02d:%02d", self / (60 * 60), (self / 60) % 60, self % 60)
  #                                             hours,         minutes,         seconds
end