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: Clock.cpp
- Revision:
- 0:397b5462e6d7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Clock.cpp Thu Nov 15 06:55:25 2018 +0000
@@ -0,0 +1,13 @@
+#include "rtc.h"
+#include "string"
+#include "Datestr.h"
+#include "Time.h"
+#include "Clock.h"
+
+string Clock::Print()
+{
+ char buffer[40];
+ sprintf(buffer, "Datum = %d/%d/%d Zeit = %d:%02d:%02d\n", GetYear(), GetMonth(), GetDay(), GetHours(), GetMinutes(), GetSeconds()); // Plain Old Data
+ //sprintf(buffer, "Zeit = %d:%02d:%02d\n", GetHours(), GetMinutes(), GetSeconds());
+ return buffer;
+}