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

7
LINES

< > BotCompany Repo | #1004093 // toMS - seconds to milliseconds

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

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

static long toMS(double seconds) {
  ret (long) (seconds*1000);
}

static long toMS(Duration d) {
  ret d == null ? 0 : d.toMillis();
}

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: 773 / 935
Version history: 6 change(s)
Referenced in: #1005661 - secondsToMS - seconds to milliseconds / synonym of toMS
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008028 - toMS_int - seconds to milliseconds
#1019775 - fromMinutes - minutes to milliseconds
#1032038 - msToMicros - milliseconds to microseconds
#1032103 - nanosToMicroseconds
#1032606 - toMS_noPing - seconds to milliseconds