caldays
datatypes: calD = caldays (X)
Calendar duration in days.
calD = caldays (X) returns a calendarDuration
array representing calendar days equivalent to the values in X, which
must be a numeric array of integer values.
caldays is also available as a method for calendarDuration
arrays, in which case it performs the opposite conversion.
See also: calendarDuration, calyears, calquarters, calmonths, calweeks, calendarDuration.caldays
Source Code: caldays
caldays builds a calendar duration of whole days. It is one of the component builders (calyears, calquarters, calmonths, calweeks, caldays) that you combine by addition to assemble a full span.
caldays (10)
ans = calendarDuration 10d
A numeric array builds one duration per element.
caldays ([7, 14, 21])
ans =
1x3 calendarDuration array
7d 14d 21d