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

3
LINES

< > BotCompany Repo | #1006310 // fixTimestamp - fix timestamps made with now() under changes of system clock (set to 0)

JavaX fragment (include)

static long fixTimestamp(long timestamp) {
  ret timestamp > now() ? 0 : timestamp;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006310
Snippet name: fixTimestamp - fix timestamps made with now() under changes of system clock (set to 0)
Eternal ID of this version: #1006310/1
Text MD5: f01c20dfe31290ebe2954748e5bbb47f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 17:18:56
Source code size: 87 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 591 / 673
Referenced in: [show references]