From c6bb003b8882e9a16941f5803d072ec1cb728318 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 4 Jun 2024 12:52:39 -0400 Subject: xtime: Add support for @epochseconds timestamps --- tests/run.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index 8c1402d..115a036 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -410,6 +410,12 @@ make_xattrs() { esac } +# Get the Unix epoch time in seconds +epoch_time() { + # https://stackoverflow.com/a/12746260/502399 + awk 'BEGIN { srand(); print srand(); }' +} + ## Snapshot testing # Return value when a difference is detected -- cgit v1.2.3