added option to show seconds, changed call to date to have a more reliable output format