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