code: public static String getCalendarLocalizedTime(Locale locale, CmsMessages messages, long timestamp) {
  
          // get the current date & time
          TimeZone zone = TimeZone.getDefault();
          GregorianCalendar cal = new GregorianCalendar(zone, locale);
          cal.setTimeInMillis(timestamp);
          // format it nicely according to the localized pattern
          DateFormat df = new SimpleDateFormat(
              CmsCalendarWidget.getCalendarJavaDateFormat(
                  messages.key(org.opencms.workplace.Messages.GUI_CALENDAR_DATE_FORMAT_0)
                      + " "
                      + messages.key(org.opencms.workplace.Messages.GUI_CALENDAR_TIME_FORMAT_0)));
          return df.format(cal.getTime());
      }
docs: Returns the given timestamp as String formatted in a localized pattern.<p>
  
  @param locale the locale for the time format
  @param messages the messages that contain the time format definitions
  @param timestamp the time to format
  
  @return the given timestamp as String formatted in a localized pattern