15 lines
275 B
C++
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;
|
|
} |