MATLAB 도움말 센터
Number of days in year
Days = yeardays(Year)
Days = yeardays(___,Basis)
Days = yeardays(Year) returns the number of days in the given Year.
Days
Year
example
Days = yeardays(___,Basis) returns the number of days in the given Year, based on the optional argument Basis for day-count.
Basis
collapse all
Find the number of days in a given Year.
Days = yeardays(2000)
Days = 366
Find the number of days in a given Year using the optional argument Basis.
Days = yeardays(2000, 1)
Days = 360
Data Types: single | double
single
double
0
1
2
3
4
5
6
7
8
9
10
11
12
13
Day-count basis, specified as a vector of integers with values 0,1,2,3,4,5,6,7,8,9,10,11,12,13.
0 = actual/actual (default)
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
For more information, see Basis.
Number of days in given Year, returned as a nonnegative integer.
Introduced before 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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의