Removes unused date_to_datetime in zipline.

This commit is contained in:
Eddie Hebert
2012-10-16 15:20:22 -04:00
parent 1843447552
commit 3395d3ad3b
-6
View File
@@ -198,12 +198,6 @@ if __name__ == '__main__':
print time.time() - tic
def date_to_datetime(t):
dt = datetime.fromordinal(t.toordinal())
dt = dt.replace(tzinfo=pytz.utc)
return dt
def tuple_to_date(date_tuple):
year, month, day, hour, minute, second, micros = date_tuple
dt = datetime(year, month, day, hour, minute, second)