add option for timeformat