date: Remove date lib
DateTimeController can provide everything we need.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user