Exemple #1
0
 def test_duration_in_secs(self):
     self.assertEqual(duration_in_secs(datetime(2000, 1, 2) - datetime(2000, 1, 1)), 24 * 60 * 60)
Exemple #2
0
 def duration(self):
     return duration_in_secs(TimeScale.duration(self))