diff --git a/assignments/src/MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Client.java b/assignments/src/MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Client.java index 5030228bcadbaeaf2502a4def91af170752945fa..be5908bde9c765fec780f093e1200bc147b4ef8a 100644 --- a/assignments/src/MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Client.java +++ b/assignments/src/MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Client.java @@ -2,6 +2,8 @@ package MV3500Cohort2023MarchJune.homework1.Chojnacki; import java.io.*; import java.net.*; +import java.text.SimpleDateFormat; +import java.util.Calendar; /** * Testing @@ -72,7 +74,8 @@ public class Assignment1Client System.out.println("======================Assignment1==========================="); System.out.print ("Client loop " + clientLoopCount + ": "); - System.out.println("We are connected to the server!"); + String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(Calendar.getInstance().getTime()); + System.out.println("The current system time is " + timeStamp + "!"); System.out.println("The message the server sent was: '" + serverMessage + "'"); // socket gets closed, either automatically/silently by this code (or possibly by the server)