Skip to content
Permalink
1e7b314f38
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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