class EaseEngine::Time

Public Instance Methods

-( time ) click to toggle source
# File lib/ease_engine/time.rb, line 11
def -( time )
  ( to_i - time.to_i ) * 1000000 + ( usec - time.usec )
end
is_same_day( time ) click to toggle source
# File lib/ease_engine/time.rb, line 15
def is_same_day( time )
  return false if day != time.day
  return false if month != time.month
  return false if year != time.year
  return true
end
to_s() click to toggle source
# File lib/ease_engine/time.rb, line 3
def to_s
  sprintf( "%04d/%02d/%02d %02d:%02d:%02d.%06d", year, month, day, hour, min, sec, usec )
end
to_unix_epoch_time_usec() click to toggle source
# File lib/ease_engine/time.rb, line 7
def to_unix_epoch_time_usec
  to_i * 1000000 + usec
end