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.
Diff: Datestr.cpp
- Revision:
- 0:397b5462e6d7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Datestr.cpp Thu Nov 15 06:55:25 2018 +0000
@@ -0,0 +1,16 @@
+#include "Datestr.h"
+#include "string"
+
+string Datestr::toString(uint8_t value)
+{
+ //return std::to_string(value); // C++ version 11
+ char buffer[2];
+ sprintf (buffer, "%d", value); // ToString()
+ return buffer;
+}
+
+string Datestr::GetDay(uint8_t value)
+{
+ day = "Datestr " + toString(value);
+ return day;
+}