Beispiel #1
0
 def adm_pub_date(self):
     return format_date(self.pub_date, '%A, %d of %B, %Y (%H:%M)')
Beispiel #2
0
def format_for_title(date):
    ''' will format a post's pub_date from,
    e.g.: 12-02-2008 to
          12feb08'''
    return misc.format_date(date)
Beispiel #3
0
 def adm_pub_date(self):
     '''
     returns a formatted date
     '''
     return misc.format_date(self.pub_date, '%A, %d of %B, %Y (%H:%M)')