In Bash 4.2, a shell built-in time conversion for printf was introduced: the format specification %(datefmt)T makes printf output the date-time string corresponding to the format string datefmt as understood by strftime.
printf '%(dateFmt)T' # dateFmt can be any format string that strftime rec...