1 | static bool hourBetween(int hour1, int hour2) { |
2 | int h = hours(calendarForTimeZone(standardTimeZone())); |
3 | ret mod(h-hour1, 24) < mod(hour2-hour1, 24); |
4 | } |
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: | 527 / 546 |
Version history: | 2 change(s) |
Referenced in: | [show references] |