X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/b03c9c0cb585665d2a6c67feabd38040cfa7069a..0f8ac166c15a51a2422eb2d2f34af8f7e82442fc:/unitproc/bktemp-dateShort?ds=sidebyside 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)"