class TwitterCldr::Shared::DayPeriods::Timestamp
Attributes
hour[R]
min[R]
sec[R]
Public Class Methods
new(hour, min, sec)
click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 17 def initialize(hour, min, sec) @hour = hour @min = min @sec = sec end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 27 def <=>(other) to_f <=> other.to_f end
to_f()
click to toggle source
# File lib/twitter_cldr/shared/day_periods.rb, line 23 def to_f @to_f ||= hour * 60 * 60 + min * 60.0 + sec end