--- a/buses.py Thu Apr 26 16:12:23 2018 +0300 +++ b/buses.py Tue May 01 13:21:00 2018 +0300 @@ -165,6 +165,12 @@ return self.cachedIsArrival else: return self == self.trip.schedule[-1] + def departure_datetime(self, date): + import datetime + return datetime.datetime.combine(date, datetime.time()) + self.departure_time + def arrival_datetime(self, date): + import datetime + return datetime.datetime.combine(date, datetime.time()) + self.arrival_time def __repr__(self): return 'BusHalt(%r, %r, %r, %r)' % (self.arrival_time, self.departure_time, self.stop, self.trip) def sign(self, long = False):