ENgetpatternlen function

Retrieve the number of time periods in a time pattern.