Skip to content

Instantly share code, notes, and snippets.

@clintval
Created October 16, 2020 15:52
Show Gist options
  • Select an option

  • Save clintval/15289ef645d8dab6c1f916f7273bd42d to your computer and use it in GitHub Desktop.

Select an option

Save clintval/15289ef645d8dab6c1f916f7273bd42d to your computer and use it in GitHub Desktop.
AWS CLI ls time travel

Fooled by the timezone you live in?

EDT - implicit

❯ aws s3 ls s3://example-ngs-data/30-415555663/ | head -n1
2020-10-14 17:57:17 24784494053 sample-1_S21_L003_R1_001.fastq.gz

PDT - explicit

❯ TZ=":US/Pacific" aws s3 ls s3://example-ngs-data/30-415555663/ | head -n1
2020-10-14 14:57:17 24784494053 sample-1_S21_L003_R1_001.fastq.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment