1 | static java.util.Calendar calendarFromYMD(int year, int month, int day) { |
2 | java.util.Calendar c = java.util.Calendar.getInstance(); |
3 | c.set(java.util.Calendar.YEAR, year); |
4 | c.set(java.util.Calendar.MONTH, month-1); |
5 | c.set(java.util.Calendar.DATE, day); |
6 | ret c; |
7 | } |
Began life as a copy of #1020692
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020693 |
Snippet name: | calendarFromYMD |
Eternal ID of this version: | #1020693/1 |
Text MD5: | d6b924c4f5fb48491cc9c26a52e13e18 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-31 01:05:43 |
Source code size: | 272 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 338 / 351 |
Referenced in: | [show references] |