0

I have the following time format: 2019-03-08T17:35:44Z

How can I convert that, using nothing but Linux commands, to epoch time?

sebastian
  • 2,008
  • 4
  • 31
  • 49

1 Answers1

3

Use:

date -d "2019-03-08T17:35:44Z" +%s
1552066544

To get the current epoch time:

date +%s
1552085639
entropy
  • 840
  • 6
  • 16