Module: Optimizely::Helpers::DateTimeUtils

Defined in:
lib/optimizely/helpers/date_time_utils.rb

Class Method Summary collapse

Class Method Details

.create_timestampObject



23
24
25
26
27
# File 'lib/optimizely/helpers/date_time_utils.rb', line 23

def create_timestamp
  # Returns Integer current UTC timestamp
  utc = Time.now.getutc
  (utc.to_f * 1000).to_i
end