Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / Date / Date.cpp
diff options
context:
space:
mode:
Commitc34c3467c032c146608f13906231807871cd6d29 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-08 10:03:28 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-08 10:03:28 +0300
Filesc8c2721296a250d701ff214a47145c217d96b60e /src/Generic/Date/Date.cpp
FMI-OOP-P1_TicketSystem-c34c3467c032c146608f13906231807871cd6d29.tar
FMI-OOP-P1_TicketSystem-c34c3467c032c146608f13906231807871cd6d29.tar.gz
FMI-OOP-P1_TicketSystem-c34c3467c032c146608f13906231807871cd6d29.zip
Parent573d20b778f9d9bee51473dac6431189631210d6 (diff)
Autocommit at 08.05.2022 @ 10:03
1 files changed, 10 insertions, 0 deletions
-rw-r--r--src/Generic/Date/Date.cpp10
diff --git a/src/Generic/Date/Date.cpp b/src/Generic/Date/Date.cpp
index 0bd5cad..b20de51 100644
--- a/src/Generic/Date/Date.cpp
+++ b/src/Generic/Date/Date.cpp
@@ -64,8 +64,18 @@ bool Date::set_year(unsigned short newYear) {
return true;
}
+int digitToChar(unsigned digit) {
+ if (digit <= 9)
+ return '0' + digit;
+ return ' ';
+}
+
String Date::createCStr() {
+ unsigned d = day, m = month, y = year;
String out;
+ if (d > 10) {
+ d
+ }
(out += itoa(day));// << "." << dt.get_month() << "." << dt.get_year();
}