MAINT: Use Timestamp instead of Delorean for tradingcalendar end.

Instead of Delorean, use pandas `today` behavior for Timestamp.
This commit is contained in:
Eddie Hebert
2013-11-11 10:13:05 -05:00
parent 8014d9d938
commit dd95b6bfa3
+2 -4
View File
@@ -19,12 +19,10 @@ import pytz
from datetime import datetime, timedelta
from dateutil import rrule
from delorean import Delorean
start = datetime(1990, 1, 1, tzinfo=pytz.utc)
end_dln = Delorean(datetime.utcnow(), pytz.utc.zone)
end_dln.shift('US/Eastern').truncate('day').shift(pytz.utc.zone)
end = end_dln.datetime - timedelta(days=1)
end_dln = pd.Timestamp('today', tz='UTC')
end = end_dln - timedelta(days=1)
def canonicalize_datetime(dt):