4 ms·
See my comment above. What interpretation would you prefer? setDay changes the date into the future or past by changing the date, the month or the year. At a
by CyberFonic 10y ago
See my comment above. What interpretation would you prefer? setDay changes the date into the future or past by changing the date, the month or the year. At a minimum there are 6 possible values. To me none of them are an obvious choice.
- saghm 10y agoGiven that `setMinute` sets the minute in the same hour and `setHour` sets the hour in the same day, I'd think `setDay` setting to the day in the same week would be rather logical