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: Date.h
- Revision:
- 0:397b5462e6d7
diff -r 000000000000 -r 397b5462e6d7 Date.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Date.h Thu Nov 15 06:55:25 2018 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "const.h"
+#include "rtc.h"
+#include "string"
+#include "Base.h"
+
+#ifndef DATE_H
+#define DATE_H
+
+class Date : public RTC //, public Base
+{
+private:
+ uint8_t bcdToUint(uint8_t const nybbles);
+ string toString(uint8_t value);
+ string day, month, year;
+public:
+ Date()
+ {}
+ uint16_t GetYear();
+ uint8_t GetMonth();
+ uint8_t GetDay();
+ virtual string GetDay(uint8_t value);
+/* Funkt nicht!
+ string Ausgabe() { // Implementierung der rein virt. Meth. aus Base
+ char buffer[40];
+ sprintf(buffer, "Datum = %d/%d/%d \n", GetYear(), GetMonth(), GetDay()); // Plain Old Data
+ //sprintf(buffer, "Zeit = %d:%02d:%02d\n", GetHours(), GetMinutes(), GetSeconds());
+ return buffer;
+ }
+*/
+};
+#endif
\ No newline at end of file