sclass ClockTimeAttractor_AM_PM > PJFindAttractor { int hour, minute; *() { super("<int> *", tokCondition { ret eqicGetOneOf(tok, i+3, "am", "pm"); }); } public bool find() { if (!super.find()) false; hour = parseInt(get(tok(), 0)); if (eqicGet(tok(), 2, "pm")) hour += 12; minute = 0; true; } }
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: | #1022870 |
Snippet name: | ClockTimeAttractor_AM_PM |
Eternal ID of this version: | #1022870/11 |
Text MD5: | 505804801a0146048a1012bc78bc735e |
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:01:06 |
Source code size: | 356 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 708 |
Version history: | 10 change(s) |
Referenced in: | [show references] |