2020-04-13 22:50:55 +00:00
|
|
|
#ifndef CONTROLLER_PERIOD_H
|
|
|
|
#define CONTROLLER_PERIOD_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
uint16_t start;
|
|
|
|
uint16_t end;
|
|
|
|
} period_t;
|
|
|
|
|
|
|
|
period_t*
|
|
|
|
period_create(uint16_t start, uint16_t end);
|
|
|
|
|
|
|
|
int
|
2020-05-06 23:41:16 +00:00
|
|
|
period_includes_time(period_t *period, struct tm *time_struct);
|
2020-04-13 22:50:55 +00:00
|
|
|
|
|
|
|
#endif /* CONTROLLER_PERIOD_H */
|