Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def need_to_uniformize_timestamp(timestamp):
     return not is_valid_timestamp(timestamp)
Ejemplo n.º 3
0
def test_is_valid_timestamp():
    assert not is_valid_timestamp(get_now_time())
    assert is_valid_timestamp(time.time())