Use simple date command to convert timestamps

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-05-22 14:22:55 +02:00
parent 7b01912a2b
commit 959154c408
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/bin/bash
import sys set -euo pipefail
from email.Utils import formatdate
print formatdate(float(sys.argv[1])) exec date -d @$1