sectionsd: move function build_time() to helpers

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3c23415516
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-11 (Tue, 11 Jan 2022)

Origin message was:
------------------
- sectionsd: move function build_time() to helpers

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-01-11 23:39:59 +01:00
parent 206b3656f6
commit e5595cce87
3 changed files with 11 additions and 10 deletions

View File

@@ -2032,6 +2032,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;