Intrastellar Explorer
Intrastellar Explorer

Reputation: 2461

AWS S3 API list-multipart-uploads what is the timezone of the timestamp?

I am viewing multipart uploads using AWS CLI v2 like so:

aws s3api list-multipart-uploads --bucket my-bucket-name

The Uploads key of the response has an Initiated key. From the list-multipart-uploads docs:

Date and time at which the multipart upload was initiated.

For me (I'm located in the Pacific Time Zone (PT)), it looks like this:

"Initiated": "2020-06-02T02:20:49+00:00"

What is the timezone of this timestamp?


Background

I am located in the Pacific Time Zone (PT).

The region the upload was initiated from and where I ran the list-multipart-uploads command is us-west-2 (see Regions, Availability Zones, and Local Zones).

To me, it looks like the beginning format is: yyyy-mm-dd'T'HH:mm:ss (based on these)

Is this timestamp supposed to be pre-converted to pacific time, or is it given in UTC?

Upvotes: 2

Views: 217

Answers (1)

jarmod
jarmod

Reputation: 78823

It will be an ISO 8601 format timestamp.

If it ends in +hh:mm, which your example does, then that indicates that it is hh hours and mm minutes ahead of UTC. In your case of +00:00, it is UTC.

If it ends in Z e.g. 2020-06-02T02:20:49Z then it is UTC.

Upvotes: 5

Related Questions