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)

static int hours() {
  ret hours(java.util.Calendar.getInstance());
}

static int hours(java.util.Calendar c) {
  ret c.get(java.util.Calendar.HOUR_OF_DAY);
}

static int hours(long time) {
  ret hours(calendarFromTime(time));
}

static int hours(long time, TimeZone tz) {
  ret hours(calendarFromTime(time, tz));
}

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: 629 / 804
Version history: 3 change(s)
Referenced in: [show references]