Libraryless. Click here for Pure Java version (9727L/53K).
static Double parseDays(S s) { if (eqic(s, "1 day")) ret 1.0; s = dropSuffixICOrNull_trim(" days", s); ret parseDoubleOpt(s); }
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: | 119 / 181 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036310 - parseHours |