Fork of tmlee's time difference