summaryrefslogtreecommitdiffstats
path: root/date.pxd
blob: cce6c559f8ce101a6e92753f739c223820d16bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cdef extern from "isda/cdate.h":
    ctypedef struct TDateInterval:
        pass

ctypedef long TDate

cdef extern from "isda/convert.h":
    int JpmcdsStringToDateInterval(char* input, char* label, TDateInterval* interval)
    int JpmcdsMakeDateInterval(int num_periods, char period_type, TDateInterval* interval)
    char* JpmcdsFormatDate(TDate date)

cdef extern from "isda/date_sup.h":
    int JpmcdsDateIntervalToFreq(TDateInterval* interval, double* freq)

cdef extern from "isda/dateconv.h":
    TDate JpmcdsDate(long year, long month, long day)

cdef extern from "isda/ldate.h":
    int JpmcdsDateFwdThenAdjust(TDate date, TDateInterval* interval, long badDayMethod,
                                char* holidayFile, TDate *advAdjustedDate)