天软金融分析.NET函数大全 > 金融函数 > 债券 > 债券收益率 > 常用计算天数

BondDaysNewestPayment    

简述
当前计息年度的实际天数,与系统参数(证券代码)相关。
定义
BondDaysNewestPayment(SettlementDate:TDateTime;Option:Integer):Integer
参数
名称类型说明
SettlementDateTDateTime日期。结算日
OptionInteger用户自定义。方法,取值如下:
显示名 取值
计息日为基准 0
到期日为基准 1
返回Integer整数。当前计息年度的实际天数。
  • 范例



    Setsysparam(pn_Stock(),"BK010004");
    return BondDaysNewestPayment(20120703T,1);

      //结果:365
相关