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

5
LINES

< > BotCompany Repo | #1036175 // formatMinutes

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

Libraryless. Click here for Pure Java version (127L/1K).

sS formatMinutes(long ms, int decimals default 1) {
  double minutes = toMinutes(ms);
  S formatted = formatDouble(minutes, decimals);
  ret eq(formatted, "1") ? "1 minute" : formatted + " minutes";
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036175
Snippet name: formatMinutes
Eternal ID of this version: #1036175/2
Text MD5: 402ea2ae6de66edfe4f368e88cfc5676
Transpilation MD5: df05c054a1323837523618f7468c2809
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-04 20:33:57
Source code size: 204 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 12 / 29
Version history: 1 change(s)
Referenced in: [show references]