// from https://i...content-available-to-author-only...e.com/TaR29j /* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; import java.util.Date; import java.text.SimpleDateFormat; import java.text.*; /* Name of the class has to be "Main" only if the class is public. */ class TimeSheet { { //Scanner myObj = new Scanner(System.in); // Create a Scanner object Scanner myObj = new Scanner(System.in); // use myObj so you don't have to change it if you choose to use hard-wired inputs // https://w...content-available-to-author-only...t.com/how-to-format-date-using-printf-method-in-java // https://stackoverflow.com/posts/39066917/revisions System.out.println("From \"https://c...content-available-to-author-only...e.com/pwm/action/mobileGetTimesheetPunches\""); //stackoverflow/questions/2296685/how-to-read-input-with-multiple-lines-in-java //stackoverflow/questions/56887493/how-to-take-multi-line-input-in-java search:HashmatWarrior while(myObj.hasNext()) { String hours; if(!gottaFix.isEmpty()) { if(gottaFix.contains("Punches:")) { dateString = gottaFix.split(": "); dateObj = sdf.parse(dateString[1]); /*System.out.printf("Date: %td%n", dateObj); System.out.printf("Month: %tm%n", dateObj); System.out.printf("Year: %ty%n", dateObj); System.out.printf("getTime(): "+dateObj);*/ } else if(gottaFix.contains("M")) { punch = gottaFix.split("\t"); if(punch[0].equals("ES")) { if(punch[1].equals("Edited")) else } } } //else { } } } }
Punches: Sun Jun 15, 2025 Type Store Status Time Hrs SS 03660 Normal 5:37 PM 3:44 SB 03660 Normal 9:21 PM 0:16 EB 03660 Normal 9:37 PM 0:48 ES 03660 Normal 10:25 PM Punches: Mon Jun 16, 2025 Type Store Status Time Hrs SS 03660 Normal 5:32 PM 3:48 SB 03660 Normal 9:20 PM 0:12 EB 03660 Normal 9:32 PM 0:57 ES 03660 Normal 10:29 PM Punches: Tue Jun 17, 2025 Type Store Status Time Hrs SS 03660 Normal 5:17 PM 4:07 SB 03660 Normal 9:24 PM 0:17 EB 03660 Normal 9:41 PM 0:50 ES 03660 Normal 10:31 PM Punches: Sun Jun 22, 2025 Type Store Status Time Hrs SS 03660 Normal 5:35 PM 4:23 SB 03660 Normal 9:58 PM 0:15 EB 03660 Normal 10:13 PM 0:11 ES 03660 Normal 10:24 PM Punches: Mon Jun 23, 2025 Type Store Status Time Hrs SS 03660 Normal 5:30 PM 3:50 SB 03660 Normal 9:20 PM 0:13 EB 03660 Normal 9:33 PM 0:56 ES 03660 Normal 10:29 PM Punches: Tue Jun 24, 2025 Type Store Status Time Hrs SS 03660 Normal 5:23 PM 3:59 SB 03660 Normal 9:22 PM 0:13 EB 03660 Normal 9:35 PM 0:54 ES 03660 Normal 10:29 PM Punches: Sun Jun 29, 2025 Type Store Status Time Hrs SS 03660 Normal 5:37 PM 3:45 SB 03660 Normal 9:22 PM 0:14 EB 03660 Normal 9:36 PM 0:57 ES 03660 Normal 10:33 PM Punches: Mon Jun 30, 2025 Type Store Status Time Hrs SS 03660 Normal 4:36 PM 4:49 SB 03660 Normal 9:25 PM 0:15 EB 03660 Normal 9:40 PM 0:47 ES 03660 Normal 10:27 PM Punches: Tue Jul 1, 2025 Type Store Status Time Hrs SS 03660 Normal 5:29 PM 3:57 SB 03660 Normal 9:26 PM 0:18 EB 03660 Normal 9:44 PM 0:44 ES 03660 Normal 10:28 PM Punches: Sat Jul 5, 2025 Type Store Status Time Hrs SS 03660 Normal 5:37 PM 4:26 SB 03660 Normal 10:03 PM 0:12 EB 03660 Normal 10:15 PM 0:21 ES 03660 Normal 10:36 PM Punches: Sun Jul 6, 2025 Type Store Status Time Hrs SS 03660 Normal 5:35 PM 3:43 SB 03660 Normal 9:18 PM 0:12 EB 03660 Normal 9:30 PM 1:00 ES 03660 Added 10:30 PM Punches: Mon Jul 7, 2025 Type Store Status Time Hrs SS 03660 Normal 5:37 PM 3:40 SB 03660 Normal 9:17 PM 0:12 EB 03660 Normal 9:29 PM 1:06 ES 03660 Normal 10:35 PM
From "https://c...content-available-to-author-only...e.com/pwm/action/mobileGetTimesheetPunches" Sun 06/15, scheduledTime, 5:37, 9:21, 9:37, 10:25, no bank run; Mon 06/16, scheduledTime, 5:32, 9:20, 9:32, 10:29, no bank run; Tue 06/17, scheduledTime, 5:17, 9:24, 9:41, 10:31, no bank run; Sun 06/22, scheduledTime, 5:35, 9:58, 10:13, 10:24, no bank run; Mon 06/23, scheduledTime, 5:30, 9:20, 9:33, 10:29, no bank run; Tue 06/24, scheduledTime, 5:23, 9:22, 9:35, 10:29, no bank run; Sun 06/29, scheduledTime, 5:37, 9:22, 9:36, 10:33, no bank run; Mon 06/30, scheduledTime, 4:36, 9:25, 9:40, 10:27, no bank run; Tue 07/1, scheduledTime, 5:29, 9:26, 9:44, 10:28, no bank run; Sat 07/5, scheduledTime, 5:37, 10:03, 10:15, 10:36, no bank run; Sun 07/6, scheduledTime, 5:35, 9:18, 9:30, 10:30, no bank run; Mon 07/7, scheduledTime, 5:37, 9:17, 9:29, 10:35, no bank run;