Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of rtc_class by
Date.h@4:a4d39c018c65, 2015-04-20 (annotated)
- Committer:
- bulmecisco
- Date:
- Mon Apr 20 08:35:58 2015 +0000
- Revision:
- 4:a4d39c018c65
- Parent:
- 3:c6081814064d
- Child:
- 5:fc8c66a7c87a
to_String added to class Date
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bulmecisco | 3:c6081814064d | 1 | #include "mbed.h" |
| bulmecisco | 3:c6081814064d | 2 | #include "const.h" |
| bulmecisco | 3:c6081814064d | 3 | #include "RTC8563.h" |
| bulmecisco | 4:a4d39c018c65 | 4 | #include "string" |
| bulmecisco | 3:c6081814064d | 5 | |
| bulmecisco | 3:c6081814064d | 6 | #ifndef DATE_H |
| bulmecisco | 3:c6081814064d | 7 | #define DATE_H |
| bulmecisco | 3:c6081814064d | 8 | class Date : public RTC8563 // Date abgeleitet von RTC8563 |
| bulmecisco | 3:c6081814064d | 9 | { |
| bulmecisco | 3:c6081814064d | 10 | private: |
| bulmecisco | 3:c6081814064d | 11 | uint8_t bcdToUint(uint8_t const nybbles); // private Methode |
| bulmecisco | 4:a4d39c018c65 | 12 | string toString(uint8_t value); |
| bulmecisco | 4:a4d39c018c65 | 13 | |
| bulmecisco | 3:c6081814064d | 14 | public: |
| bulmecisco | 3:c6081814064d | 15 | Date() // Standard Konstruktor |
| bulmecisco | 3:c6081814064d | 16 | {} |
| bulmecisco | 3:c6081814064d | 17 | uint8_t GetDay(); // Methode |
| bulmecisco | 3:c6081814064d | 18 | }; |
| bulmecisco | 3:c6081814064d | 19 | #endif |
