Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ServerRestartSchedule.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SKYFIRE_SERVER_RESTART_SCHEDULE_H
7#define SKYFIRE_SERVER_RESTART_SCHEDULE_H
8
9#include "Define.h"
10
11#include <ctime>
12
13namespace Skyfire
14{
16 {
17 bool ParseTimeOfDay(char const* text, uint32& secondsOfDay);
18 bool CalculateRestartDelay(char const* text, uint32 currentSecondsOfDay, uint32& delaySeconds);
19 bool CalculateRestartDelay(char const* text, time_t now, uint32& delaySeconds);
20 bool CalculateRestartDelay(char const* text, uint32& delaySeconds);
21 }
22}
23
24#endif
std::uint32_t uint32
Definition Define.h:77
bool ParseTimeOfDay(char const *text, uint32 &secondsOfDay)
bool CalculateRestartDelay(char const *text, uint32 currentSecondsOfDay, uint32 &delaySeconds)