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

15
LINES

< > BotCompany Repo | #1030445 // minuteInDay - 0 to 24*60

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (81L/1K).

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

static int minuteInDay(java.util.Calendar c) {
  ret hours(c)*60+minutes(c);
}

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

static int minuteInDay(long time default now(), TimeZone tz) {
  ret minuteInDay(calendarFromTime(time, tz));
}

Author comment

Began life as a copy of #1003419

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030445
Snippet name: minuteInDay - 0 to 24*60
Eternal ID of this version: #1030445/2
Text MD5: 88e2ef1363525d5a59eb083269197356
Transpilation MD5: 7c5eedfde1848e3f7cb70019d2427647
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-17 20:26:29
Source code size: 370 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 187
Version history: 1 change(s)
Referenced in: [show references]