added functions to parse timedata