def get_datetime_format(format='medium', locale=LC_TIME):
 patterns = Locale.parse(locale).datetime_formats
 if (format not in patterns):
  format = None
 return patterns[format]

def get_datetime_format ( format = 'medium' , locale = LC_TIME ) : patterns = Locale . parse ( locale ) . datetime_formats if ( format not in patterns ) : format = None return patterns [ format ]
return the datetime formatting patterns used by the locale for the specified format .