diff options
| author | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-06-29 15:41:19 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-06-29 15:43:41 -0400 |
| commit | 698e0ddb347fa4b67a9ded9d1b8dbb452d8cffbc (patch) | |
| tree | 770d1131c9751ee91d235df878b47209caa23d79 /date.pyx | |
| parent | fa3c124b5da1b3ef07efeb8c1d279680b514c1ff (diff) | |
| download | pyisda-698e0ddb347fa4b67a9ded9d1b8dbb452d8cffbc.tar.gz | |
add convenience function to convert python dates
Diffstat (limited to 'date.pyx')
| -rw-r--r-- | date.pyx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/date.pyx b/date.pyx new file mode 100644 index 0000000..2852f1b --- /dev/null +++ b/date.pyx @@ -0,0 +1,6 @@ +import datetime +from date cimport JpmcdsDate + +cdef TDate pydate_to_TDate(d): + assert isinstance(d, datetime.date) + return JpmcdsDate(d.year, d.month, d.day) |
