The goal is to work out the time difference in minutes for the following
I turn on my hot water in a script, with 21:55 + x minutes (x being determined in the script) I have another event which can turn the hot water off before. If that happens, I want to know how many minutes early the hot water has turned off.
I have the time it should have turned off with the 21:55 + x
What I need is the how to determine the time hot water has turned off (and store that time in a variable ?)
then I should be able to just subtract one from the other to have my result (lets call it y)
I store the value of x in a .ini file, and would like to write the y value also the the .ini (this part is easy I can do that)
I turn on my hot water in a script, with 21:55 + x minutes (x being determined in the script) I have another event which can turn the hot water off before. If that happens, I want to know how many minutes early the hot water has turned off.
I have the time it should have turned off with the 21:55 + x
What I need is the how to determine the time hot water has turned off (and store that time in a variable ?)
then I should be able to just subtract one from the other to have my result (lets call it y)
I store the value of x in a .ini file, and would like to write the y value also the the .ini (this part is easy I can do that)
Comment