From 1efd94af53bd110e2ebbea29bce3bf1ab720400b Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Tue, 26 Nov 2024 22:43:36 +0100 Subject: [PATCH] finale version --- bin/Co2Data.class | Bin 3715 -> 3718 bytes bin/Date.class | Bin 1836 -> 1836 bytes src/Co2Data.java | 2 +- src/Date.java | 1 + 4 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/Co2Data.class b/bin/Co2Data.class index cac907cdc442fb851254e19a0c6e024001a38aa5..db6525b8cb1c4b0b2e9fad1ef190adaa64d6293b 100644 GIT binary patch delta 87 zcmZpcZIj(_nNz8Nff)!H7?iZOGw^C@Z)FhBlG(~2q@}%$K|~-WLm(w#@+VF;Wkm)N g1_hup1&Cq>MFu4x52%fSm4S_c5yaYT&E>%Y0PFY-wg3PC delta 84 zcmZpZZI<0|nNvQOff)!H8059KGw^C@Z)FhBlG(~2q@}%$K|~-WWAax{HDx&l5e5aI d8U=_-21N!XAP=aAft7)cff2;oY{%un0syFm4ATGr diff --git a/bin/Date.class b/bin/Date.class index f4d3eb4b4b717e609e9606b3eb62010faaf6ce5d..204980f3ff9a34981e4aa7c942a8d9ad9143dcd5 100644 GIT binary patch delta 13 UcmZ3(w}x*6KRcuEWC3;=032rnPXGV_ delta 13 UcmZ3(w}x*6KRct(WC3;=032ciP5=M^ diff --git a/src/Co2Data.java b/src/Co2Data.java index 7936293..f717dba 100644 --- a/src/Co2Data.java +++ b/src/Co2Data.java @@ -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 diff --git a/src/Date.java b/src/Date.java index 5e71ded..7242306 100644 --- a/src/Date.java +++ b/src/Date.java @@ -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); }