mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 16:42:56 +08:00
BUG: Python 3 time compatibility
This commit is contained in:
@@ -129,7 +129,7 @@ AnoNovoSabado = Holiday(
|
||||
'Ano Novo Sabado',
|
||||
month=12,
|
||||
day=30,
|
||||
days_of_week=(FRIDAY),
|
||||
days_of_week=(FRIDAY,),
|
||||
)
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ class BMFExchangeCalendar(ExchangeCalendar):
|
||||
|
||||
exchange_name = 'BMF'
|
||||
native_timezone = timezone('America/Sao_Paulo')
|
||||
open_time = time(10, 01)
|
||||
open_time = time(10, 1)
|
||||
close_time = time(17)
|
||||
|
||||
# Does the market open or close on a different calendar day, compared to
|
||||
@@ -209,7 +209,7 @@ class BMFExchangeCalendar(ExchangeCalendar):
|
||||
|
||||
holidays_calendar = BMFHolidayCalendar()
|
||||
special_opens_calendars = [
|
||||
(time(13, 01), BMFLateOpenCalendar()),
|
||||
(time(13, 1), BMFLateOpenCalendar()),
|
||||
]
|
||||
special_closes_calendars = ()
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ class LSEExchangeCalendar(ExchangeCalendar):
|
||||
|
||||
exchange_name = 'LSE'
|
||||
native_timezone = timezone('Europe/London')
|
||||
open_time = time(8, 01)
|
||||
open_time = time(8, 1)
|
||||
close_time = time(16, 30)
|
||||
open_offset = 0
|
||||
close_offset = 0
|
||||
|
||||
Reference in New Issue
Block a user