Download Jar. Libraryless. Click here for Pure Java version (5941L/42K).
1 | !7 |
2 | |
3 | p-exp { |
4 | assertEquals(10*1000L, howLongAgo_toMS("10 seconds ago")); |
5 | assertEquals(5*60*1000L, howLongAgo_toMS("5 minutes ago")); |
6 | assertEquals(3*60*60*1000L, howLongAgo_toMS("3 hours ago")); |
7 | assertEquals(24*60*60*1000L, howLongAgo_toMS("1 day ago")); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019453 |
Snippet name: | Test howLongAgo_toMS (OK) |
Eternal ID of this version: | #1019453/4 |
Text MD5: | 46abb3a0080168056297fbacd188bb9b |
Transpilation MD5: | c4cf3c8f3e0170539a3dfefc9a575f55 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-07 01:12:11 |
Source code size: | 268 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 404 / 1076 |
Version history: | 3 change(s) |
Referenced in: | [show references] |