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

14
LINES

< > BotCompany Repo | #1022876 // ClockTimeAttractor_colon - "HH:MM"

JavaX fragment (include)

sclass ClockTimeAttractor_colon > PJFindAttractor {
  int hour, minute;
  
  *() {
    super("<int>:<int>");
  }
  
  public bool find() {
    if (!super.find()) false;
    hour = parseInt(get(tok(), 0));
    minute = parseInt(get(tok(), 4));
    true;
  }
}

Author comment

Began life as a copy of #1022870

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022876
Snippet name: ClockTimeAttractor_colon - "HH:MM"
Eternal ID of this version: #1022876/2
Text MD5: ade9be8e82aa636000fa41bce5967243
Author: stefan
Category: javax / discord
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-12 17:07:04
Source code size: 271 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 716
Version history: 1 change(s)
Referenced in: #1022879 - IntAttractor
#1022883 - DateAttractor_ymd - "y/m/d"
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)