Exemple #1
0
def humandata():
    i = 1
    for p in data["response"]:
        print("Pass {}".format(i))
        print("------")
        print("Duration: {} minutes".format(get_minutes(p["duration"])))
        print("Risetime: {}".format(get_human(p["risetime"])))
        print("\n")
        i += 1
Exemple #2
0
 def test_get_human(self):
     self.assertEqual(date_time.get_human(0), '1970-01-01 00:00:00')
     self.assertEqual(date_time.get_human(1), '1970-01-01 00:00:01')