1 | sS formatDaysColonHoursColonMinutes(long ms) { |
2 | long minutes = iround(toMinutes(ms)); |
3 | long hours = minutes/60; |
4 | long days = hours/24; |
5 | ret days + ":" + formatInt(mod(hours, 24), 2) + ":" + formatInt(mod(minutes, 60), 2); |
6 | } |
Began life as a copy of #1020552
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: | #1020553 |
Snippet name: | formatDaysColonHoursColonMinutes - for a millisecond argument |
Eternal ID of this version: | #1020553/1 |
Text MD5: | 767d9ca7c9b120ad98482f71a74b319c |
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:54:29 |
Source code size: | 232 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 255 / 293 |
Referenced in: | [show references] |