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).

static Duration parseDaysOrHours(S s) {
  Double d = parseDays(s);
  if (d != null) ret daysToDuration(d);
  d = parseHours(s);
  if (d != null) ret hoursToDuration(d);
  null;
}

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