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 changed files with 3 additions and 4 deletions
|
@ -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 a new issue