core-legacy/helpers/get_weekday.c
Tobias Reisinger 10e41ca166 add: commands
fix: timezone problem
2020-05-07 01:38:13 +02:00

11 lines
215 B
C

#include <time.h>
#include <helpers.h>
int
helper_get_weekday(const struct tm *time_struct)
{
int wday_sun_sat = time_struct->tm_wday;
int wday_mon_sun = (wday_sun_sat + 6) % 7;
return wday_mon_sun;
}