static int daysInMonth() { long now = now(); ret daysInMonth(localYear(now), localMonth(now)); } static int daysInMonth(int year, int month) { java.util.Calendar calendar = java.util.Calendar.getInstance(); calendar.set(java.util.Calendar.YEAR, year); calendar.set(java.util.Calendar.MONTH, month); ret calendar.getActualMaximum(java.util.Calendar.DATE); }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019308 |
| Snippet name: | daysInMonth |
| Eternal ID of this version: | #1019308/3 |
| Text MD5: | 2c48a88d3a91af1521aa49b64834cde1 |
| Author: | stefan |
| Category: | javax / calendar |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-31 01:00:24 |
| Source code size: | 379 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 542 / 603 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |