[Logo]
Forums Register Login
Calendar roll() method
I recently downloaded a Date Picker control that has the strange behavior of going from Dec. 2003 (for example) to Jan. 2003 when I choose the 'next month' button ('>'). Researching the problem I discovered that this occurs because the author chose to use the Calendar roll() method, rather than the add() method. Studying the Javadocs for roll() I can't help but wonder what is the value of this method? Why would anyone ever want to use roll()?
It appears to me that this method might occasionally give the correct values, but would very often give incorrect results. So, can anyone explain to me when they would truly want to use the roll() method?
TIA,
Dave Derry
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 1050 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 16, 2018 20:36:35.