Use simple date command to convert timestamps
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7b01912a2b
commit
959154c408
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user