Libraryless. Click here for Pure Java version (81L/1K).
1 | static int minuteInDay() { |
2 | ret minuteInDay(java.util.Calendar.getInstance()); |
3 | } |
4 | |
5 | static int minuteInDay(java.util.Calendar c) { |
6 | ret hours(c)*60+minutes(c); |
7 | } |
8 | |
9 | static int minuteInDay(long time) { |
10 | ret minuteInDay(calendarFromTime(time)); |
11 | } |
12 | |
13 | static int minuteInDay(long time default now(), TimeZone tz) { |
14 | ret minuteInDay(calendarFromTime(time, tz)); |
15 | } |
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: | 201 / 278 |
Version history: | 1 change(s) |
Referenced in: | [show references] |