Handle time comparisons using longs