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
import sys
from email.Utils import formatdate
#!/bin/bash
set -euo pipefail
print formatdate(float(sys.argv[1]))
exec date -d @$1