mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-06 13:00:45 +08:00
Removes unused date_to_datetime in zipline.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user