mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-10 07:08:33 +02:00
- sectionsd: move function build_time() to helpers
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user