Method: Mongo::Auth::Aws::Request#formatted_time
- Defined in:
- lib/mongo/auth/aws/request.rb
#formatted_time ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns formatted_time ISO8601-formatted time of the request, as would be used in X-Amz-Date header.
97 98 99 |
# File 'lib/mongo/auth/aws/request.rb', line 97 def formatted_time @formatted_time ||= @time.getutc.strftime('%Y%m%dT%H%M%SZ') end |