Ejemplo n.º 1
0
def filter_reports_by_age(report):
    try:
        ts,__,__ = os.path.basename(report).split('_')
        if now - fromTimestamp(ts) > delta:
            return True
    except (InvalidTimestampFormat, ValueError):
        return False
Ejemplo n.º 2
0
 def test_fromTimestamp(self):
     time_stamp = otime.timestamp(test_date)
     self.assertEqual(test_date, otime.fromTimestamp(time_stamp))
Ejemplo n.º 3
0
 def test_fromTimestamp(self):
     time_stamp = otime.timestamp(test_date)
     self.assertEqual(test_date, otime.fromTimestamp(time_stamp))