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

5
LINES

< > BotCompany Repo | #1036309 // parseDays

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

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

1  
static Double parseDays(S s) {
2  
  if (eqic(s, "1 day")) ret 1.0;
3  
  s = dropSuffixICOrNull_trim(" days", s);
4  
  ret parseDoubleOpt(s);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036309
Snippet name: parseDays
Eternal ID of this version: #1036309/2
Text MD5: b0852d55eee97d8c412867705accdf5f
Transpilation MD5: 77a8979eb30bae9475654853626edc5c
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:07:48
Source code size: 137 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 184
Version history: 1 change(s)
Referenced in: [show references]