kspread
helper.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef kspread_functions_helper_h_
00020 #define kspread_functions_helper_h_
00021
00022
00023 #include "kspread_export.h"
00024
00025 class QDate;
00026
00027 namespace KSpread
00028 {
00029
00030
00031
00032
00033
00034
00035
00036 KSPREAD_EXPORT int daysPerYear( QDate const & date, int basis );
00037
00038
00039
00040
00041
00042
00043
00044 KSPREAD_EXPORT int daysBetweenDates( QDate const & date1, QDate const & date2, int basis );
00045
00046
00047
00048 KSPREAD_EXPORT int days360( const QDate& _date1, const QDate& _date2, bool european );
00049 KSPREAD_EXPORT int days360( int day1, int month1, int year1, bool leapYear1, int day2, int month2, int year2, bool usa );
00050 KSPREAD_EXPORT long double yearFrac( const QDate& refDate, const QDate& startDate, const QDate& endDate, int basis );
00051 KSPREAD_EXPORT long double duration( const QDate& refDate, const QDate& settlement, const QDate& maturity, const long double& coup_, const long double& yield_, const int& freq, const int& basis, const long double& numOfCoups );
00052 KSPREAD_EXPORT long double pow1p ( const long double& x, const long double& y);
00053 KSPREAD_EXPORT long double pow1pm1 ( const long double& x, const long double& y);
00054 }
00055
00056 #endif
|