Libraryless. Click here for Pure Java version (36L/1K).
1 | static java.util.Calendar calendarFromTime(long time, TimeZone tz) { |
2 | java.util.Calendar c = java.util.Calendar.getInstance(tz); |
3 | c.setTimeInMillis(time); |
4 | ret c; |
5 | } |
6 | |
7 | static java.util.Calendar calendarFromTime(long time) { |
8 | java.util.Calendar c = java.util.Calendar.getInstance(); |
9 | c.setTimeInMillis(time); |
10 | ret c; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1020692 |
Snippet name: | calendarFromTime |
Eternal ID of this version: | #1020692/2 |
Text MD5: | 9db0367977c95286b5eb7f34b535abc9 |
Transpilation MD5: | be5b23fe4aeb668eb6a93525558ace57 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-28 17:09:55 |
Source code size: | 331 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 316 / 421 |
Version history: | 1 change(s) |
Referenced in: | [show references] |