Clark Wang
2015-02-05 08:59:34 UTC
See following example:
[STEP 101] $ echo ${.sh.version}
Version ABIJMP 93v- 2014-09-29
[STEP 102] $ printf '%(%Y%m%d)T\n'
20150205
[STEP 103] $ printf '%(%Y%m%d)T\n' '12 month ago'
20140201
[STEP 104] $ printf '%(%Y%m%d)T\n' '18 month ago'
20140601 <-- Wrong
[STEP 105] $
[STEP 101] $ echo ${.sh.version}
Version ABIJMP 93v- 2014-09-29
[STEP 102] $ printf '%(%Y%m%d)T\n'
20150205
[STEP 103] $ printf '%(%Y%m%d)T\n' '12 month ago'
20140201
[STEP 104] $ printf '%(%Y%m%d)T\n' '18 month ago'
20140601 <-- Wrong
[STEP 105] $