Update MatchData.java

Added the timestamp feature
This commit is contained in:
NoahLacks 2025-03-14 08:42:33 -04:00 committed by GitHub
parent b9f08ad944
commit 024f22ba0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ public class MatchData {
String.valueOf(eClimb), String.valueOf(eClimb),
eNote, eNote,
scoutName, scoutName,
//The variable for time getTimestamp();
}; };
return String.join("@#@", matchData); return String.join("@#@", matchData);
@ -82,6 +82,11 @@ public class MatchData {
return eventName + matchNumber + teamNumber + ".csv"; return eventName + matchNumber + teamNumber + ".csv";
} }
public static String getTimestamp() {
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy HH:mm:ss.SSS", Locale.getDefault());
return sdf.format(new Date());
}
public String getScoutName() { public String getScoutName() {
return scoutName; return scoutName;
} }