![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Diff: LocalDate.cpp
- Revision:
- 47:468a89d62c23
- Parent:
- 46:0de1f3c7d118
- Child:
- 67:8d0e88172e2a
--- 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; }