def render_date(date):
 if (not date):
  return None
 assert valid_date(date)
 weekday = Definitions.weekday_abbr_list[date.weekday()]
 month = Definitions.month_abbr_list[(date.month - 1)]
 return date.strftime('{day}, %d {month} %Y %H:%M:%S GMT').format(day=weekday, month=month)

def render_date ( date ) : if ( not date ) : return None assert valid_date ( date ) weekday = Definitions . weekday_abbr_list [ date . weekday ( ) ] month = Definitions . month_abbr_list [ ( date . month - 1 ) ] return date . strftime ( '{day}, %d {month} %Y %H:%M:%S GMT' ) . format ( day = weekday , month = month )
render a date per rfcs 6265/2616/1123 .