fbusdate automatically includes holidays?

조회 수: 15 (최근 30일)
Matthew
Matthew 2012년 8월 8일
I'm running version R2012a, using fbusdate from fints I get the following
>> tempdate = fbusdate(2012, 01); datestr(tempdate)
ans =
03-Jan-2012
and similarly
>> tempdate = fbusdate(2010, 01, []); datestr(tempdate)
ans =
04-Jan-2010
which suggests the first day of the year is being counted as a holiday. I was under the impression you had to specify holidays using the 'Holiday' parameter? Is there some default list of holidays which are accounted for and then other holidays which need to be manually accounted for?

채택된 답변

Walter Roberson
Walter Roberson 2012년 8월 9일
The documentation says that the default holidays are supplied by the holidays() function; see http://www.mathworks.com/help/finance/holidays.html
  댓글 수: 1
Matthew
Matthew 2012년 8월 9일
Ahh I guess I was misunderstanding, I thought holdiays() provided a list of holidays which could then be fed in to fbusdate or other functions through the holiday parameter.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Holidays / Seasons에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by