code: public static final Function<Calendar,String> toStr(final String pattern, final Locale locale) {
          return new ToString(pattern, locale);
      }
docs: <p>
  Converts the target Calendar into a String using the specified <tt>pattern</tt>.
  The pattern has to be written in the <tt>java.text.SimpleDateFormat</tt> format,
  and the specified locale will be used for text-based pattern components (like
  month names or week days).
  </p>
  
  @param pattern the pattern to be used, as specified by <tt>java.text.SimpleDateFormat</tt>.
  @param locale the locale to be used for text-based pattern components
  @return the String representation of the target Calendar.