Simplify hour:minute:second display
Now it's a bit easier to read! Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
d905ebd375
commit
193107574f
|
@ -65,7 +65,7 @@ class Message:
|
|||
return self.__time < other.__time
|
||||
|
||||
def __str__(self):
|
||||
return "%s %s: %s" % (self.__time.time(), self.__user.name(), self.__text)
|
||||
return "%s %s: %s" % (self.__time.strftime("%I:%M:%S %p "), self.__user.name(), self.__text)
|
||||
|
||||
def ts(self):
|
||||
return self.__ts
|
||||
|
|
Loading…
Reference in New Issue