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

7
LINES

< > BotCompany Repo | #1012863 // ai_chatLineTimeDiff

JavaX fragment (include)

1  
static long ai_chatLineTimeDiff(S line) {
2  
  S prev = ai_previousChatLine(line);
3  
  if (prev == null) ret -1;
4  
  long a = ai_chatLineUnixTime(line);
5  
  long b = ai_chatLineUnixTime(prev);
6  
  ret a >= 0 && b >= 0 ? a-b : -1;
7  
}

Author comment

Began life as a copy of #1012862

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: #1012863
Snippet name: ai_chatLineTimeDiff
Eternal ID of this version: #1012863/1
Text MD5: 829f94cc7e8800ba5bae58c3fb10ea19
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-14 21:53:43
Source code size: 226 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 439 / 467
Referenced in: [show references]