summaryrefslogtreecommitdiffstats
path: root/date.pxd
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2016-06-29 15:41:19 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2016-06-29 15:43:41 -0400
commit698e0ddb347fa4b67a9ded9d1b8dbb452d8cffbc (patch)
tree770d1131c9751ee91d235df878b47209caa23d79 /date.pxd
parentfa3c124b5da1b3ef07efeb8c1d279680b514c1ff (diff)
downloadpyisda-698e0ddb347fa4b67a9ded9d1b8dbb452d8cffbc.tar.gz
add convenience function to convert python dates
Diffstat (limited to 'date.pxd')
-rw-r--r--date.pxd2
1 files changed, 2 insertions, 0 deletions
diff --git a/date.pxd b/date.pxd
index cce6c55..24af83f 100644
--- a/date.pxd
+++ b/date.pxd
@@ -18,3 +18,5 @@ cdef extern from "isda/dateconv.h":
cdef extern from "isda/ldate.h":
int JpmcdsDateFwdThenAdjust(TDate date, TDateInterval* interval, long badDayMethod,
char* holidayFile, TDate *advAdjustedDate)
+
+cdef TDate pydate_to_TDate(d)