Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / Date / Date.cpp
diff options
context:
space:
mode:
1 files changed, 6 insertions, 0 deletions
-rw-r--r--src/Generic/Date/Date.cpp6
diff --git a/src/Generic/Date/Date.cpp b/src/Generic/Date/Date.cpp
index 831c532..0bd5cad 100644
--- a/src/Generic/Date/Date.cpp
+++ b/src/Generic/Date/Date.cpp
@@ -1,4 +1,5 @@
#include "Date.h"
+#include <cstring>
/* Private */
@@ -63,6 +64,11 @@ bool Date::set_year(unsigned short newYear) {
return true;
}
+String Date::createCStr() {
+ String out;
+ (out += itoa(day));// << "." << dt.get_month() << "." << dt.get_year();
+}
+
void Date::read(std::istream& istr) {
istr.read((char*)&day, sizeof(day));
istr.read((char*)&month, sizeof(month));