Use proper Time objects

Use a proper time object instead of strings for all time related data.