finale version

This commit is contained in:
Sage The DM 2024-11-26 22:43:36 +01:00
parent 74eca9c9b3
commit 1efd94af53
4 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -16,7 +16,7 @@ public class Co2Data {
public Co2Data(Date date, int co2Level) {
this.date = date;
this.co2Level = co2Level;
this.time = date.getHour() * 100 + date.getMinute();
this.time = (date.getHour() * 100 + 100) + date.getMinute();
}
// #region Getters and Setters

View file

@ -72,6 +72,7 @@ public class Date {
// #region String Representation
// Method to print date in a readable format
@Override
public String toString() {
return String.format("%04d-%02d-%02d %02d:%02d", year, month, day, hour, minute);
}