MCPcopy Create free account
hub / github.com/aws/aws-cli / _parse_timestamp

Method _parse_timestamp

awscli/botocore/credentials.py:2296–2300  ·  view source on GitHub ↗
(self, timestamp_ms)

Source from the content-addressed store, hash-verified

2294 return self._make_file_safe(argument_hash)
2295
2296 def _parse_timestamp(self, timestamp_ms):
2297 # fromtimestamp expects seconds so: milliseconds / 1000 = seconds
2298 timestamp_seconds = timestamp_ms / 1000.0
2299 timestamp = datetime.datetime.fromtimestamp(timestamp_seconds, tzutc())
2300 return timestamp.strftime(self._UTC_DATE_FORMAT)
2301
2302 def _get_credentials(self):
2303 """Get credentials by calling SSO get role credentials."""

Callers 1

_get_credentialsMethod · 0.95

Calls 1

fromtimestampMethod · 0.80

Tested by

no test coverage detected