static int toCompactTimestamp(long time) { if (time == 0) ret 0; time -= 1514262010451L; time = max(time, 0); ret toInt((time+50)/100); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013134 |
Snippet name: | toCompactTimestamp - from e.g. now() - has 0.1 second resolution and expires in 6 years |
Eternal ID of this version: | #1013134/4 |
Text MD5: | 06902ae62f7d5cb0b30feea7dd81fb43 |
Author: | stefan |
Category: | javax / calendar |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-26 05:37:51 |
Source code size: | 150 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 405 / 418 |
Version history: | 3 change(s) |
Referenced in: | [show references] |