Also for those wondering about the function, it includes a file with a simple class in it to acquire the time. Once the class saves the time in a variable, I serialize the object of the class so I can call the object later and check what time the event was called. I have also ran this function separately and it works as well being able to get the current time, store it in a serializable object and later call the object and unserialize it to display the time.