Libraryless. Click here for Pure Java version (37L/1K).
1 | static long toMS(double seconds) {
|
2 | ret (long) (seconds*1000); |
3 | } |
4 | |
5 | static long toMS(Duration d) {
|
6 | ret d == null ? 0 : d.toMillis(); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1004093 |
| Snippet name: | toMS - seconds to milliseconds |
| Eternal ID of this version: | #1004093/7 |
| Text MD5: | deddd028090f634cb966db05fb7fec37 |
| Transpilation MD5: | 5787de92fed73f1b8bf8e5abb7ceae35 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-05 19:02:57 |
| Source code size: | 141 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1516 / 1814 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |