date: Remove date lib
DateTimeController can provide everything we need.
This commit is contained in:
parent
959778d770
commit
8baa317e7e
14 changed files with 43 additions and 94 deletions
|
|
@ -15,6 +15,7 @@
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <algorithm>
|
||||
#include <qcbor/qcbor_spiffy_decode.h>
|
||||
#include "WeatherService.h"
|
||||
#include "libs/QCBOR/inc/qcbor/qcbor.h"
|
||||
|
|
|
|||
|
|
@ -67,6 +67,10 @@ namespace Pinetime {
|
|||
return static_cast<Days>(daysSinceSunday);
|
||||
}
|
||||
|
||||
uint8_t DayOfYear() const {
|
||||
return localTime.tm_yday + 1;
|
||||
}
|
||||
|
||||
uint8_t Hours() const {
|
||||
return localTime.tm_hour;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue