def created_in_words(self): return distance_of_time_in_words(self.created, datetime.datetime.utcnow())
def end_in_words(self): return distance_of_time_in_words( self.end_date, datetime.datetime.utcnow() )
def joined_in_words(self): return distance_of_time_in_words(self.join_date, datetime.datetime.utcnow())
def created_in_words(self): # Can't use time_ago_in_words(self.created) since self.created # is UTC, but that function compares against local time return distance_of_time_in_words(self.created, datetime.datetime.utcnow())
def start_in_words(self): return distance_of_time_in_words( self.start_date, datetime.datetime.utcnow() )
def joined_in_words(self): """ The date the user joined should be human readable. """ return distance_of_time_in_words( self.join_date, datetime.datetime.utcnow() )
def end_in_words(self): """ This function is to display when the user will be reinstated. """ return distance_of_time_in_words( self.end_date, datetime.datetime.utcnow() )
def start_in_words(self): """ This function is to display when the user got banned. """ return distance_of_time_in_words( self.start_date, datetime.datetime.utcnow() )
def posted_in_words(self): """ The date the topic was posted needs to be human readable. """ return distance_of_time_in_words( self.posted_date, datetime.datetime.utcnow() )