sS weekday_after_ymdSlashes(int weekdayNr, S date) { if (weekdayNr < 1) null; int day1 = dayOfWeek_nr(parseYYYYslashMMslashDD(date)); ret datePlusDays_slashes(date, mod(weekdayNr-day1-1, 7)+1); }
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, lnbujpyubztb, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022552 |
| Snippet name: | weekday_after_ymdSlashes (not same day) |
| Eternal ID of this version: | #1022552/2 |
| Text MD5: | a1d33b825d0be2b96d57fde64c9d4b3a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-21 10:56:48 |
| Source code size: | 205 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 461 / 513 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1022553 - test_weekday_after_ymdSlashes |