Smart time-parser