lib/zklib/helper.rb
def encode_time(options)
      time = options[:time]

      ((time.year % 100) * 12 * 31 + ((time.mon - 1) * 31) + time.day - 1) * (24 * 60 * 60) + (time.hour * 60 + time.min) * 60 + time.sec
    end
# Convert time to number of seconds
#
# param  options
#        |_ time  Time object to encode
Convert time to number of seconds
param  options
|_ time  Time object to encode
Convert time to number of seconds param options |_ time Time object to encode
def encode_time(options)
      time = options[:time]
      ((time.year % 100) * 12 * 31 + ((time.mon - 1) * 31) + time.day - 1) * (24 * 60 * 60) + (time.hour * 60 + time.min) * 60 + time.sec
    end
def encode_time ( options ) time = options [ :time ] ( ( time . year % 100 ) * 12 * 31 + ( ( time . mon - 1 ) * 31 ) + time . day - 1 ) * ( 24 * 60 * 60 ) + ( time . hour * 60 + time . min ) * 60 + time . sec end
Convert time to number of seconds
param  options
|_ time  Time object to encode
Convert time to number of seconds param options |_ time Time object to encode
options