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

7
LINES

< > BotCompany Repo | #1036311 // parseDaysOrHours

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

Libraryless. Click here for Pure Java version (9799L/53K).

1  
static Duration parseDaysOrHours(S s) {
2  
  Double d = parseDays(s);
3  
  if (d != null) ret daysToDuration(d);
4  
  d = parseHours(s);
5  
  if (d != null) ret hoursToDuration(d);
6  
  null;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036311
Snippet name: parseDaysOrHours
Eternal ID of this version: #1036311/1
Text MD5: feece51eb6841f67b679c520f5380de2
Transpilation MD5: 45bbb0219b544d2a4632cf0a23d45f7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-15 19:10:16
Source code size: 184 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 181
Referenced in: [show references]