1 | static int toCompactTimestamp(long time) { |
2 | if (time == 0) ret 0; |
3 | time -= 1514262010451L; |
4 | time = max(time, 0); |
5 | ret toInt((time+50)/100); |
6 | } |
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: | 408 / 421 |
Version history: | 3 change(s) |
Referenced in: | [show references] |