Add struct tm constructor for LocalTime, use it to tidy up