Completed the longTimeToDate function.