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

8
LINES

< > BotCompany Repo | #1029935 // renderConceptDate [created + modified]

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

Libraryless. Click here for Pure Java version (13201L/91K).

sS renderConceptDate(Concept cc) {
  if (cc == null) ret "";
  S c = formatLocalDateWithSeconds(cc.created);
  S m = formatLocalDateWithSeconds(cc._modified);
  S s = "Created " + c;
  if (neq(c, m)) s += ", modified " + m;
  ret s;
}

Author comment

Began life as a copy of #1027039

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029935
Snippet name: renderConceptDate [created + modified]
Eternal ID of this version: #1029935/3
Text MD5: 1859b9b3d7f71df8f9f92b057069ef17
Transpilation MD5: 525409fcfed7210fb6dcc9da077bdd9a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-12 14:36:07
Source code size: 241 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 187 / 269
Version history: 2 change(s)
Referenced in: [show references]