Given a JSON file containing an array of objects that represent machine events with the following properties: { companyId machineId timestamp type subtype key value } Question: How long was the machine ACTIVE during the 14:00 hour?
Sigiloso
Import the JSON file and filter through the objects based on the properties. If using JS use the built-in Date object to parse the timestamp What happens when the machine is on before the start of the hour? What happens when the machine is still before the hour ends?