Files
catalyst/zipline/utils
Andrew DanielsandGitHub 6cebf05417 BUG: Further corrections for days_at_time (#1334)
* BUG: Further corrections for days_at_time

- Revert to using DateOffset, as Timedelta doesn't handle offsetting by
  one day over a tz change properly:

    In [12]: pd.Timestamp('2004-04-05', tz='America/Chicago') + pd.Timedelta(days=-1)
    Out[12]: Timestamp('2004-04-03 23:00:00-0600', tz='America/Chicago')

    In [13]: pd.Timestamp('2004-04-05', tz='America/Chicago') + pd.DateOffset(days=-1)
    Out[13]: Timestamp('2004-04-04 00:00:00-0600', tz='America/Chicago')

  By creating a DateOffset using the `days` kwarg, the issue previously
  fixed in bcc867b is addressed.

- To preempt any other pandas issues around day offsets, changes to
  performing these with no timezone, then localizing to the local
  timezone when shifting the time.
- Adds unit test for days_at_time

* STY: Remove unused import
2016-07-19 13:19:40 -04:00
..
2015-03-19 17:21:25 -04:00
2016-06-21 15:07:03 -04:00
2016-05-04 15:56:09 -04:00
2016-02-24 14:50:32 -05:00
2016-07-12 13:13:50 -04:00
2016-06-21 15:07:03 -04:00
2016-06-21 15:07:03 -04:00
2016-06-21 15:07:03 -04:00
2016-07-12 13:13:50 -04:00
2015-11-24 16:55:07 -05:00
2016-07-12 13:13:50 -04:00