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

22
LINES

< > BotCompany Repo | #1018680 // Hourly Mark

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14692L/101K).

1  
!7
2  
3  
module HourlyOnMark > DynPrintLog {
4  
  transient java.util.Timer timer;
5  
  
6  
  start {
7  
    startTimer();
8  
    ownResource(tempAddToList((L) dm_getOSOpt('timeJumpDetector_onTimeJump), r onTimeJump));
9  
  }
10  
  
11  
  void onTimeJump enter {
12  
    print("TIME JUMP");
13  
    cancelTimer(timer);
14  
    startTimer();
15  
  }
16  
  
17  
  void startTimer {
18  
    timer = atTheStartOfEveryHour(r {
19  
      logQuotedWithDate(javaxDataDir("hourly-mark.log"), print("On at: ", localDateWithSeconds()));
20  
    });
21  
  }
22  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018680
Snippet name: Hourly Mark
Eternal ID of this version: #1018680/10
Text MD5: aac3b1e2de69dd65a291dbf700dfccf1
Transpilation MD5: ad961dff4dd891a483417b1dca0a3815
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-12 16:43:13
Source code size: 497 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 1044
Version history: 9 change(s)
Referenced in: [show references]