Update MatchData.java
Added the timestamp feature
This commit is contained in:
parent
b9f08ad944
commit
024f22ba0d
@ -72,7 +72,7 @@ public class MatchData {
|
||||
String.valueOf(eClimb),
|
||||
eNote,
|
||||
scoutName,
|
||||
//The variable for time
|
||||
getTimestamp();
|
||||
};
|
||||
|
||||
return String.join("@#@", matchData);
|
||||
@ -82,6 +82,11 @@ public class MatchData {
|
||||
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() {
|
||||
return scoutName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user