calweeks
datatypes: calD = calweeks (X)
Calendar duration in weeks.
calD = calweeks (X) returns a calendarDuration
array representing calendar weeks equivalent to the values in X, which
must be a numeric array of integer values.
calweeks is also available as a method for calendarDuration
arrays, in which case it performs the opposite conversion.
See also: calendarDuration, calyears, calquarters, calmonths, caldays, calendarDuration.calweeks
Source Code: calweeks
calweeks builds a calendar duration of whole weeks (each week is 7 days).
calweeks (3)
ans = calendarDuration 3w
Combine the component builders by adding them.
calweeks (2) + caldays (3)
ans = calendarDuration 2w 3d