The function input is an array of datetime objects - this is the date and time of pressing the button. Your task is to determine how long the light bulb has been turned on.
Input: A list of datetime objects
Output: A number of seconds as an integer.