Category: | Date and Time |
If the default shift period is the same as the interval, then only multiperiod intervals can be shifted with the optional shift index. For example, because MONTH intervals shift by MONTH periods by default, monthly intervals cannot be shifted with the shift index. However, bimonthly intervals can be shifted with the shift index, because there are two MONTH intervals in each MONTH2 interval. For example, the interval name MONTH2.2 specifies bimonthly periods starting on the first day of even-numbered months.
intcindex('day','01SEP78'd);
returns a value of 35 because September 1, 1978, is the sixth day
of the 35th week of the year. For more information about working with
date and time intervals, see Date and Time Intervals.
cycle_index = intcindex('day','04APR2005'd);
, the INTCINDEX
function returns the week of the year. In the example index = intindex('day','04APR2005'd);
, the INTINDEX
function returns the day of the week.