Adding a function to compare timestamps. I will use it to workaround the