diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/markit/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/markit/utils.py b/python/markit/utils.py new file mode 100644 index 00000000..6f6c6770 --- /dev/null +++ b/python/markit/utils.py @@ -0,0 +1,6 @@ +import pandas as pd +from pandas.tseries.offsets import BDay + +def default_date(): + d = pd.datetime.today() - BDay(1) + return d.date() |
