![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my programm rtc_class with functions in Date.cpp
Fork of rtc_func by
DateString.cpp@3:75f5352b387d, 2015-04-30 (annotated)
- Committer:
- KagerJ
- Date:
- Thu Apr 30 10:53:00 2015 +0000
- Revision:
- 3:75f5352b387d
added GetDay() GetYear() GetWeek()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KagerJ | 3:75f5352b387d | 1 | #include "DateString.h" |
KagerJ | 3:75f5352b387d | 2 | #include "RTC8563.h" |
KagerJ | 3:75f5352b387d | 3 | |
KagerJ | 3:75f5352b387d | 4 | //2. Methode überschreiben |
KagerJ | 3:75f5352b387d | 5 | uint8_t DateSting::GetDay() |
KagerJ | 3:75f5352b387d | 6 | { |
KagerJ | 3:75f5352b387d | 7 | uint8_t day= Date::GetDay(); //Aufruf der GetDay- Methode aus Basisklasse Date mit Scope Operator |
KagerJ | 3:75f5352b387d | 8 | //Erweitern von Methoden der Basisklasse |
KagerJ | 3:75f5352b387d | 9 | day = day - 5; |
KagerJ | 3:75f5352b387d | 10 | return day; |
KagerJ | 3:75f5352b387d | 11 | } |