Update parse_time to deal with pandas objects.

Now converts TimeStamp and DatetimeIndex to datetime and an array of datetimes.