Skip to content

Business day offset function with custom exchange based calendar

Notifications You must be signed in to change notification settings

mcunningto/imsholcal

Repository files navigation

imsholcal

exchange holiday calendar business day offset package

all country codes used are 3 letter ISO country codes, in lower case. dependant packages are: os pandas.tseries.offsets pandas

see example use below for getting date 3 business days ago using aus holiday calendar:

from imsholcal.business_day import exch_hols from datetime import datetime import pytz

tminus_2 = (datetime.now(pytz.timezone('Australia/Sydney')) - exch_hols(3,'aus')).strftime("%m/%d/%Y")

About

Business day offset function with custom exchange based calendar

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages