From 4deaccf40115c7153ea3dff0412042768781f8a7 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 5 Feb 2019 10:34:00 +0000 Subject: [PATCH] fhem.pl: add constants (Forum #96959) git-svn-id: https://svn.fhem.de/fhem/trunk@18497 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 4be03334b..ce764040f 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -270,6 +270,11 @@ use vars qw(@authorize); # List of authorization devices use vars qw(@intAtA); # Internal timer array use vars qw(@structChangeHist); # Contains the last 10 structural changes +use constant { + DAYSECONDS => 86400, + HOURSECONDS => 3600, + MINUTESECONDS => 60 +}; $selectTimestamp = gettimeofday(); $cvsid = '$Id$';