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

6
LINES

< > BotCompany Repo | #1018683 // atTheStartOfEveryHour - install a java.util.Timer

JavaX fragment (include)

static FixedRateTimer atTheStartOfEveryHour(Runnable r) {
  FixedRateTimer timer = new(defaultTimerName());
  int delay = hoursToMS_int(1);
  timer.schedule(smartTimerTask(r, timer, delay), new Date(timeOfNextLocalHour()), delay);
  ret timer;
}

Author comment

Began life as a copy of #1004683

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: #1018683
Snippet name: atTheStartOfEveryHour - install a java.util.Timer
Eternal ID of this version: #1018683/1
Text MD5: 857907a7fee85059f15decab838c80cc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-09 23:03:01
Source code size: 250 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 252 / 288
Referenced in: [show references]