From 959154c408fe1128f81f56c64fbac1432b77d864 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 22 May 2018 14:22:55 +0200 Subject: [PATCH] Use simple date command to convert timestamps Signed-off-by: Knut Ahlers --- bin/read_timestamp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/read_timestamp b/bin/read_timestamp index 54b178e..d9b7320 100755 --- a/bin/read_timestamp +++ b/bin/read_timestamp @@ -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