1 | sclass TimeRange extends Concept {
|
2 | long from; |
3 | settable long to; |
4 | |
5 | *() {}
|
6 | *(long *from) { to = from; }
|
7 | |
8 | void addNow() {
|
9 | cset(this, to := max(to, now())); |
10 | } |
11 | } |
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: | 903 / 1552 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |