Beispiel #1
0
 /**
  * Get Time Format. Used for Display only
  *
  * @return Time format h:mm:ss z or HH:mm:ss z
  */
 public SimpleDateFormat getTimeFormat() {
   if (LocaleUtil.isIranLocale()) {
     return new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
   } else {
     return (SimpleDateFormat) DateFormat.getTimeInstance(DateFormat.LONG, m_locale);
   }
 } //	getTimeFormat
Beispiel #2
0
  /**
   * Get Date Time Format. Used for Display only
   *
   * @return Date Time format MMM d, yyyy h:mm:ss a z -or- dd.MM.yyyy HH:mm:ss z -or- j nnn aaaa, H'
   *     ?????? 'm' ????'
   */
  public SimpleDateFormat getDateTimeFormat() {
    if (LocaleUtil.isIranLocale()) {
      return new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
    } else {
      return (SimpleDateFormat)
          DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.LONG, m_locale);
    }

    //	log.finer("Pattern=" + retValue.toLocalizedPattern() + ", Loc=" +
    // retValue.toLocalizedPattern());
  } //	getDateTimeFormat