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

4
LINES

< > BotCompany Repo | #1020551 // formatMinutesColonSeconds - for a millisecond argument

JavaX fragment (include)

sS formatMinutesColonSeconds(long ms) {
  long seconds = iround(toSeconds(ms));
  ret seconds/60 + ":" + formatInt(mod(seconds, 60), 2);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020551
Snippet name: formatMinutesColonSeconds - for a millisecond argument
Eternal ID of this version: #1020551/1
Text MD5: dcd4c8cadd7010c6713556ac5a440365
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-26 19:46:38
Source code size: 141 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 328
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020552 - formatHoursColonMinutes - for a millisecond argument
#1030677 - formatHoursMinutesColonSeconds - format a duration. hour is optional