From b59e9e060808c0ff2f59d86ef47484fb2f9fdb19 Mon Sep 17 00:00:00 2001 From: lachtan Date: Sat, 18 Sep 2021 18:27:21 +0200 Subject: [PATCH] bash utime function --- rc/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc/functions.sh b/rc/functions.sh index bf0c52b..4569f1e 100644 --- a/rc/functions.sh +++ b/rc/functions.sh @@ -9,3 +9,7 @@ function ffile() { file $(type -p "$filename") $@ } +# print time in seconds with nanoseconds precission +function utime() { + date '+%s.%N' +}