mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
add __str__ to DateTime for easier introspection
Take advantage of Date and Time __str__ methods
This commit is contained in:
parent
a5be2ad5ac
commit
0b2def8122
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user