]>
zdv2.bktei.com Git - BK-2020-03.git/blob - unitproc/bktemp-dateTimeShort
   3 # Desc: Template to display date and time. 
   6     # Desc: Timestamp without separators (YYYYmmddTHHMMSS+zzzz) 
   8     # Output: stdout: timestamp (ISO-8601, no separators) 
   9     TIME_CURRENT
="$(date --iso-8601=seconds)" ; # Produce `date`-parsable current timestamp with resolution of 1 second. 
  10     TIME_CURRENT_SHORT
="$(date -d "$TIME_CURRENT" +%Y%m%dT%H%M%S%z)"; # Produce separator-less current timestamp with resolution 1 second. 
  11     echo "$TIME_CURRENT_SHORT"; 
  12 } # Get date&time without separators 
  14 #==BEGIN sample code== 
  15 echo "The current day and time is:$(dateTimeShort)" 
  18 # Author: Steven Baltakatei Sandoval