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

7
LINES

< > BotCompany Repo | #1020693 // calendarFromYMD

JavaX fragment (include)

static java.util.Calendar calendarFromYMD(int year, int month, int day) {
  java.util.Calendar c = java.util.Calendar.getInstance();
  c.set(java.util.Calendar.YEAR, year);
  c.set(java.util.Calendar.MONTH, month-1);
  c.set(java.util.Calendar.DATE, day);
  ret c;
}

Author comment

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: 337 / 349
Referenced in: [show references]