I suggest you peruse this article for type conversions. There are examples of time comparisons in it: