X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/b03c9c0cb585665d2a6c67feabd38040cfa7069a..6962f268e8b908ab320dd101d19ac7e0366234d1:/unitproc/bktemp-dateShort diff --git a/unitproc/bktemp-dateShort b/unitproc/bktemp-dateShort index 2608645..38b39eb 100644 --- a/unitproc/bktemp-dateShort +++ b/unitproc/bktemp-dateShort @@ -10,7 +10,7 @@ dateShort(){ TIME_CURRENT="$(date --iso-8601=seconds)" ; # Produce `date`-parsable current timestamp with resolution of 1 second. DATE_CURRENT_SHORT="$(date -d "$TIME_CURRENT" +%Y%m%d)"; # Produce separator-less current date with resolution 1 day. echo "$DATE_CURRENT_SHORT"; -} # Get date without separators +} # Get YYYYmmdd #==BEGIN sample code== echo "The current day is:$(dateShort)"