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

3
LINES

< > BotCompany Repo | #1024000 // daysUntilEndOfYear

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10164L/56K).

1  
static int daysUntilEndOfYear(long time default now()) {
2  
  ret ifloor(toDays(parseYMD((year(time)+1) + "/1/1")-time));
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1024000
Snippet name: daysUntilEndOfYear
Eternal ID of this version: #1024000/2
Text MD5: b794e9b52f23ad8295e6609003f6fa2b
Transpilation MD5: 7925ced91518009229fdcbfa9df79c3d
Author: stefan
Category: javax / vm
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-26 17:17:18
Source code size: 122 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 280 / 376
Version history: 1 change(s)
Referenced in: [show references]