perl -i.bak -pe 's/\(\d+)\<\/time\>/\sprintf("%06d",$1)\<\/time\>/ if /\(\d{5})\<\/time\>/'