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

15
LINES

< > BotCompany Repo | #1003419 // hours - hour of the day

JavaX fragment (include)

1  
static int hours() {
2  
  ret hours(java.util.Calendar.getInstance());
3  
}
4  
5  
static int hours(java.util.Calendar c) {
6  
  ret c.get(java.util.Calendar.HOUR_OF_DAY);
7  
}
8  
9  
static int hours(long time) {
10  
  ret hours(calendarFromTime(time));
11  
}
12  
13  
static int hours(long time, TimeZone tz) {
14  
  ret hours(calendarFromTime(time, tz));
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1003419
Snippet name: hours - hour of the day
Eternal ID of this version: #1003419/4
Text MD5: e81409fe08b90d0b130dda2d740a76e8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-03 18:24:15
Source code size: 329 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 756 / 912
Version history: 3 change(s)
Referenced in: [show references]