MATLAB 帮助中心
年中的天数
Days = yeardays(Year)
Days = yeardays(___,Basis)
Days = yeardays(Year) 返回给定 Year 中的天数。
Days
Year
示例
Days = yeardays(___,Basis) 根据可选计日参量 Basis 返回给定 Year 中的天数。
Basis
全部折叠
求给定 Year 中的天数。
Days = yeardays(2000)
Days = 366
使用可选参量 Basis 求给定 Year 中的天数。
Days = yeardays(2000, 1)
Days = 360
数据类型: single | double
single
double
0
1
2
3
4
5
6
7
8
9
10
11
12
13
计日基数,指定为整数向量,其中的值为 0、1、2、3、4、5、6、7、8、9、10、11、12 和 13。
0 = actual/actual(默认)
1 = 30/360 (SIA)
2 = actual/360
3 = actual/365
4 = 30/360 (BMA)
5 = 30/360 (ISDA)
6 = 30/360 (European)
7 = actual/365 (Japanese)
8 = actual/actual (ICMA)
9 = actual/360 (ICMA)
10 = actual/365 (ICMA)
11 = 30/360E (ICMA)
12 = actual/365 (ISDA)
13 = BUS/252
有关详细信息,请参阅Basis。
给定 Year 的天数,以非负整数形式返回。
在 R2006a 之前推出
days360 | days365 | daysact | yearfrac
days360
days365
daysact
yearfrac
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处