On 11/14/2012 04:00 AM, Clark WANG wrote:
In ksh:$ printf '%(%F %T)T\n' 2012-11-14 10:57:26 $ In bash: $ printf '%(%F %T)T\n' 1970-01-01 08:00:00 $ I think the ksh behavior is makes more sense so can we use the current time as the default? -Clark
For it there is -1 special parameter for printf: $ printf '%(%F %T)T\n' -1 2012-11-14 12:54:56 RR