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

7
LINES

< > BotCompany Repo | #1029972 // renderHowLongAgoPlusModified

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2764L/17K).

sS renderHowLongAgoPlusModified(long timestamp, long timestamp2, O... _) {
  optPar S spacer = ", modified ";
  if (timestamp2 == 0) timestamp2 = timestamp;
  S s = renderHowLongAgo(timestamp);
  S s2 = renderHowLongAgo(timestamp2);
  ret eq(s, s2) ? s : s + ", modified " + s2;
}

Author comment

Began life as a copy of #1019448

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029972
Snippet name: renderHowLongAgoPlusModified
Eternal ID of this version: #1029972/3
Text MD5: 776a9a0a06e54b1a648e569de5cf4730
Transpilation MD5: 3e044203ef6c8860c1058de48ccd33f2
Author: stefan
Category: javax / calendar
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-24 13:45:55
Source code size: 286 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 184
Version history: 2 change(s)
Referenced in: [show references]