OpenDTU-old/lib/Hoymiles/src/Utils.cpp
helgeerbe f7bd4a40d8 revert Revert "Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development"
merge of v23.9.11 broke the system. As a workaround upgrade espressif32 from 6.3.2 to 6.4.0 is skipped. See #440
2023-09-14 13:45:23 +02:00

15 lines
275 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2023 Thomas Basler and others
*/
#include "Utils.h"
#include <time.h>
uint8_t Utils::getWeekDay()
{
time_t raw;
struct tm info;
time(&raw);
localtime_r(&raw, &info);
return info.tm_mday;
}