Tutorial by Examples

$ printf '%(%F)T\n' 2016-08-17
$ printf -v now '%(%T)T' $ echo "$now" 12:42:47

Page 1 of 1