Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > TinyBrain | #1008890 - hourBetween

JavaX fragment (include)

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   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

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: 27 / 42
Version history: 2 change(s)
Referenced in: [show]