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

18
LINES

< > BotCompany Repo | #1016170 // Clock

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

Uses 911K of libraries. Click here for Pure Java version (4297L/21K).

1  
!7
2  
3  
cmodule Clock > DynBigNumber {
4  
  transient new RestartableCountdown countdown;
5  
  
6  
  void start {
7  
    ownTimer(countdown);
8  
    setDescription("Local Time");
9  
    actualUpdate();
10  
  }
11  
  
12  
  void actualUpdate {
13  
    setValue(localTime_24());
14  
    long delay = (timeToNextLocalMinute()+100) % 60000;
15  
    localPrint("Delay: " + delay);
16  
    countdown.start(delay, r actualUpdate);
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016170
Snippet name: Clock
Eternal ID of this version: #1016170/10
Text MD5: 09e920a43b6f29f785e278fe0a5a8d38
Transpilation MD5: 7b5cdf4a5b66a24df9ed400f1d9a00b0
Author: stefan
Category: javax / gui
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-25 20:03:36
Source code size: 396 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 363 / 74776
Version history: 9 change(s)
Referenced in: [show references]