Better compatibility for time strings
Extract time formats as variable