Rewrote parse_date_and_time_output

Fix issue #329