lib/aerospike/utils/epoc.rb in aerospike-0.1.6 vs lib/aerospike/utils/epoc.rb in aerospike-1.0.0

- old
+ new

@@ -16,13 +16,15 @@ require 'time' module Aerospike + private + CITRUSLEAF_EPOCH = 1262304000 # Converts an Expiration time to TTL in seconds - def self.TTL(secs_from_citrus_leaf_epoc) + def self.TTL(secs_from_citrus_leaf_epoc) #:nodoc: if secs_from_citrus_leaf_epoc == 0 0xFFFFFFFF else now = Time.now.to_i - CITRUSLEAF_EPOCH # Record was not expired at server but if it looks expired at client