X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/ea8ea560b8fd5d0ce500ef462eb0142c419167a5..0f48af59d8759f8a46dfacf58758476ddbe2a3cf:/unitproc/bktemp-dateTimeShort diff --git a/unitproc/bktemp-dateTimeShort b/unitproc/bktemp-dateTimeShort index d6491c1..dc470e0 100644 --- a/unitproc/bktemp-dateTimeShort +++ b/unitproc/bktemp-dateTimeShort @@ -9,7 +9,7 @@ dateTimeShort(){ TIME_CURRENT="$(date --iso-8601=seconds)" ; # Produce `date`-parsable current timestamp with resolution of 1 second. TIME_CURRENT_SHORT="$(date -d "$TIME_CURRENT" +%Y%m%dT%H%M%S%z)"; # Produce separator-less current timestamp with resolution 1 second. echo "$TIME_CURRENT_SHORT"; -} +} # Get date&time without separators #==BEGIN sample code== echo "The current day and time is:$(dateTimeShort)"