static bool hourBetween(int hour1, int hour2) { int h = hours(calendarForTimeZone(standardTimeZone())); ret mod(h-hour1, 24) < mod(hour2-hour1, 24); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008890 |
| Snippet name: | hourBetween |
| Eternal ID of this version: | #1008890/3 |
| Text MD5: | 5ba8b724fe35d5da2a28dd141cf9dd67 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-15 19:12:00 |
| Source code size: | 157 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 743 / 765 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |