Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SOFT253_Template_Weather_OS_54 by
Diff: LocalDate.cpp
- Revision:
- 47:468a89d62c23
- Parent:
- 46:0de1f3c7d118
- Child:
- 67:8d0e88172e2a
diff -r 0de1f3c7d118 -r 468a89d62c23 LocalDate.cpp
--- a/LocalDate.cpp	Thu Apr 06 15:31:01 2017 +0000
+++ b/LocalDate.cpp	Thu Apr 06 15:46:00 2017 +0000
@@ -18,10 +18,19 @@
         min = 12;
         sec = 12;
     }
+    LocalDate::LocalDate(LocalDate *localDate)
+    {
+        day = localDate->day;
+        month = localDate->month;
+        year = localDate->year;
+        hour = localDate->hour;
+        min = localDate->min;
+        sec = localDate->sec;   
+    }
     char* LocalDate::ToString()
     {
         char *charArray = new char[40];
-        sprintf(charArray,"%i/%i/%i - %i:%i:%i \r\n",day,month,year,hour,min,sec);
+        sprintf(charArray,"%i/%i/%i - %i:%i:%i",day,month,year,hour,min,sec);
         return charArray;
     }
     
    
