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

15
LINES

< > BotCompany Repo | #1022883 // DateAttractor_ymd - "y/m/d"

JavaX fragment (include)

1  
sclass DateAttractor_ymd > PJFindAttractor {
2  
  S ymd;
3  
  
4  
  *() {
5  
    super("<int>/<int>/<int>");
6  
  }
7  
  
8  
  public bool find() {
9  
    if (!super.find()) false;
10  
    ymd = parseInt(get(tok(), 0))
11  
      + "/" + formatInt(parseInt(get(tok(), 4)), 2)
12  
      + "/" + formatInt(parseInt(get(tok(), 8)), 2);
13  
    true;
14  
  }
15  
}

Author comment

Began life as a copy of #1022876

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: #1022883
Snippet name: DateAttractor_ymd - "y/m/d"
Eternal ID of this version: #1022883/4
Text MD5: e90dbf6b2b3e60809a20ccefdf223590
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-12 18:16:05
Source code size: 325 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 656
Version history: 3 change(s)
Referenced in: [show references]