diff options
Autocommit at 08.05.2022 @ 09:58
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | src/Generic/Date/Date.cpp | 6 |
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)); |
