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

11
LINES

< > BotCompany Repo | #1006241 // concept TimeRange

JavaX fragment (include)

sclass TimeRange extends Concept {
  long from;
  settable long to;
  
  *() {}
  *(long *from) { to = from; }
  
  void addNow() {
    cset(this, to := max(to, now()));
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006241
Snippet name: concept TimeRange
Eternal ID of this version: #1006241/2
Text MD5: 84e3748dc3ed0a87146d556ffb34fe81
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-17 00:04:13
Source code size: 187 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 541 / 1174
Version history: 1 change(s)
Referenced in: [show references]