-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathCalendar.pxd
32 lines (23 loc) · 914 Bytes
/
Calendar.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
u"""
Created on 2015-2-20
@author: cheng.li
"""
from PyFin.DateUtilities.Date cimport Date
from PyFin.DateUtilities.Period cimport Period
cdef class CalendarImpl(object):
cdef bint isBizDay(self, Date date)
cdef bint isWeekEnd(self, int weekDay)
cdef class Calendar(object):
cdef public CalendarImpl _impl
cdef public str name
cpdef isBizDay(self, Date d)
cpdef isHoliday(self, Date d)
cpdef isWeekEnd(self, int weekday)
cpdef isEndOfMonth(self, Date d)
cpdef endOfMonth(self, Date d)
cpdef bizDaysBetween(self, Date fromDate, Date toDate, bint includeFirst=*, bint includeLast=*)
cpdef adjustDate(self, Date d, int c=*)
cpdef advanceDate(self, Date d, Period period, int c=*, bint endOfMonth=*)
cpdef holDatesList(self, Date fromDate, Date toDate, bint includeWeekEnds=*)
cpdef bizDatesList(self, Date fromDate, Date toDate)