- sectionsd: move function build_time() to helpers

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-01-11 23:39:59 +01:00
committed by Thilo Graf
parent 9f0b46d11c
commit 9ed525d199
3 changed files with 11 additions and 10 deletions

View File

@@ -1874,6 +1874,15 @@ bool isDigitWord(std::string str)
return true;
}
time_t GetBuildTime()
{
static const char *built = __DATE__ " " __TIME__;
struct tm t;
t.tm_isdst = -1;
strptime(built, "%b %d %Y %H:%M:%S", &t);
return mktime(&t);
}
int getBoxMode()
{
int boxmode = -1;