Libraryless. Click here for Pure Java version (36L/1K).
static java.util.Calendar calendarFromTime(long time, TimeZone tz) { java.util.Calendar c = java.util.Calendar.getInstance(tz); c.setTimeInMillis(time); ret c; } static java.util.Calendar calendarFromTime(long time) { java.util.Calendar c = java.util.Calendar.getInstance(); c.setTimeInMillis(time); ret c; }
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: | 315 / 419 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020693 - calendarFromYMD |