Package org.apache.catalina.util

Examples of org.apache.catalina.util.Strftime


    public void setConfigTimeFmt( String configTimeFmt, boolean fromConstructor ) {
  this.configTimeFmt = configTimeFmt;

  //What's the story here with DateTool.LOCALE_US?? Why??
  this.strftime = new Strftime( configTimeFmt, DateTool.LOCALE_US );

  //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be updated when
  //the timefmt changes.  This is what Apache SSI does.
  setDateVariables( fromConstructor );
    }
View Full Code Here


    public void setConfigTimeFmt( String configTimeFmt, boolean fromConstructor ) {
  this.configTimeFmt = configTimeFmt;

  //What's the story here with DateTool.LOCALE_US?? Why??
  this.strftime = new Strftime( configTimeFmt, DateTool.LOCALE_US );

  //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be updated when
  //the timefmt changes.  This is what Apache SSI does.
  setDateVariables( fromConstructor );
    }
View Full Code Here

      }
  }
    }

    protected String formatDate( Date date, String configTimeFmt ) {
  Strftime strftime = new Strftime( configTimeFmt, DateTool.LOCALE_US );
  return strftime.format( date );
    }
View Full Code Here


    public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) {
        this.configTimeFmt = configTimeFmt;
        //What's the story here with DateTool.LOCALE_US?? Why??
        this.strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be
        // updated when
        //the timefmt changes. This is what Apache SSI does.
        setDateVariables(fromConstructor);
    }
View Full Code Here

        return lastModified;
    }


    protected String formatDate(Date date, String configTimeFmt) {
        Strftime strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        return strftime.format(date);
    }
View Full Code Here


    public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) {
        this.configTimeFmt = configTimeFmt;
        //What's the story here with DateTool.LOCALE_US?? Why??
        this.strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be
        // updated when
        //the timefmt changes. This is what Apache SSI does.
        setDateVariables(fromConstructor);
    }
View Full Code Here

        return lastModified;
    }


    protected String formatDate(Date date, String configTimeFmt) {
        Strftime strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        return strftime.format(date);
    }
View Full Code Here


    public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) {
        this.configTimeFmt = configTimeFmt;
        //What's the story here with DateTool.LOCALE_US?? Why??
        this.strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be
        // updated when
        //the timefmt changes. This is what Apache SSI does.
        setDateVariables(fromConstructor);
    }
View Full Code Here

        return lastModified;
    }


    protected String formatDate(Date date, String configTimeFmt) {
        Strftime strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        return strftime.format(date);
    }
View Full Code Here


    public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) {
        this.configTimeFmt = configTimeFmt;
        //What's the story here with DateTool.LOCALE_US?? Why??
        this.strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US);
        //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be
        // updated when
        //the timefmt changes. This is what Apache SSI does.
        setDateVariables(fromConstructor);
    }
View Full Code Here

TOP

Related Classes of org.apache.catalina.util.Strftime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.