calendarDuration.calweeks
calendarDuration: X = calweeks (calD)
Calendar duration in weeks.
X = calweeks (calD) returns a numeric array with the
number of weeks as represented in calD.
calweeks is also available as a function, in which case it
performs the opposite conversion.
See also: calendarDuration.calyears, calendarDuration.calquarters, calendarDuration.calmonths, calendarDuration.caldays, calweeks
Source Code: calendarDuration
As a calendarDuration method, calweeks returns the day part of the span as a whole number of weeks.
d = calendarDuration (0, 0, 40)
d = calendarDuration 40d
calweeks (d)
ans = 5