def need_to_uniformize_timestamp(self, timestamp): """ Return True if the timestamp should be uniformized :param timestamp: the timestamp to check :return: True if the timestamp should be uniformized """ return not timestamp_util.is_valid_timestamp(timestamp)
def need_to_uniformize_timestamp(timestamp): return not is_valid_timestamp(timestamp)
def test_is_valid_timestamp(): assert not is_valid_timestamp(get_now_time()) assert is_valid_timestamp(time.time())