diff --git a/py34/bacpypes/basetypes.py b/py34/bacpypes/basetypes.py index b8334036..2eaff726 100755 --- a/py34/bacpypes/basetypes.py +++ b/py34/bacpypes/basetypes.py @@ -2233,6 +2233,9 @@ class DateTime(Sequence): , Element('time', Time) ] + def __str__(self): + return "%s(date=%s, time=%s)" % (self.__class__.__name__, self.date, self.time) + class DateRange(Sequence): sequenceElements = \ [ Element('startDate', Date)