Formatting time output when pulling data