From 573d20b778f9d9bee51473dac6431189631210d6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 8 May 2022 09:58:26 +0300 Subject: Autocommit at 08.05.2022 @ 09:58 --- src/Generic/Date/Date.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Generic/Date/Date.cpp') 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 /* 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)); -- cgit v1.3.1-26-gb76a