Method: App42::Client::RestUtil#get_timestamp_utc

Defined in:
lib/app42/client/rest_util.rb

#get_timestamp_utcObject

Finds the current time

Returns:

  • time format



15
16
17
18
# File 'lib/app42/client/rest_util.rb', line 15

def get_timestamp_utc
  timestamp = Time.now.utc.strftime("%Y-%m-%dT%H:%M:%S.%LZ")
  return timestamp.freeze
end