Added GetYearPeriodActive() to get active year period.

This commit is contained in:
2024-08-01 15:45:50 +02:00
parent 260973cd09
commit 89b05ffadc
2 changed files with 39 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include <ctime>
#include <iostream>
#include <cmath>
#include <optional>
#include "day_of_week.h"
#include "configuration.h"
@@ -62,6 +63,7 @@ namespace Utilities {
/// <returns></returns>
bool IsYearPeriodActive(Configuration* cfg, struct tm* currentDateTime);
bool IsYearPeriodActive(Configuration const *cfg, QDateTime const &currentDateTime);
std::optional<ATBPeriodYear> GetYearPeriodActive(Configuration const *cfg, QDateTime const &currentDateTime);
/// <summary>
/// Check permissions