2

I am trying to convert date time in epoch to UTC human readable format, I have tried this and this gives me the result in CET but wrong result.

perl -e 'print scalar localtime(1549950859468 / 1000)
Tue Feb 12 06:54:19 2019

How should it be done in any help ?

Alex
  • 172
  • 1
  • 1
  • 8

1 Answers1

3

Would:

date -d @$((1549950859468 / 1000)) -u

do?

Tomek
  • 3,390
  • 1
  • 16
  • 10