Error Messages/40867
< Error Messages
Revision as of 01:25, 6 February 2010 by AManandhar (talk | contribs)
Error Message Examples
Unrecognized value to the «dateUnit» parameter in Function Sequence: 'hr' Possible values are: 'Y', 'Q', 'M', 'WD', 'D', 'h', 'm', 's'
Cause
You have passed an unrecognized value as the dateUnit parameter to the Sequence function. DateUnit parameter can be specified to generate a sequence of dates, and the accepted values to the parameter are:
'Y' : Years 'Q' : Quarters 'M' : Months 'WD': Weekdays 'D' : Days 'h' : Hours 'm' : Minutes 's' : Seconds
The following code creates a date sequence from 1-Jan-2009 to 31-Dec-2010 with a step of 4 months.
Sequence( MakeDate(2009,1,1), MakeDate(2010,12,31), 4, dateUnit:"M" )
Result: [ 1-Jan-2009, 1-May-2009, 1-Sep-2009, 1-Jan-2010, 1-May-2010, 1-Sep-2010 ]
Please click on the following link to learn more about the optional dateUnit parameter.
Remedies
Either specify the strict parameter to be true or pass in a positive value to the step parameter.
Comments
<comments />
Enable comment auto-refresher