X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/b03c9c0cb585665d2a6c67feabd38040cfa7069a..50aec1144a254b0a51fc5748cbff73ef770bc2e2:/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)"