Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (9 sloc) 383 Bytes
""" This is an entity, MessageBoard"""
import datetime
# Group of Four: Mediator Pattern
class MessageController(object): # a static class
@staticmethod
def display_message(text_to_display): # a static method
now = datetime.datetime.now()
displayable_message = now.strftime("%Y-%m-%d %H:%M:%S") + " " + text_to_display
return displayable_message
You can’t perform that action at this time.