org.apache.catalina.util.Strftime Java Examples
The following examples show how to use
org.apache.catalina.util.Strftime.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SSIMediator.java From Tomcat8-Source-Read with MIT License | 5 votes |
public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) { this.configTimeFmt = configTimeFmt; this.strftime = new Strftime(configTimeFmt, 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); }
Example #2
Source File: SSIMediator.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) { this.configTimeFmt = configTimeFmt; this.strftime = new Strftime(configTimeFmt, 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); }
Example #3
Source File: SSIMediator.java From tomcatsrc with Apache License 2.0 | 5 votes |
public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) { this.configTimeFmt = configTimeFmt; this.strftime = new Strftime(configTimeFmt, 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); }
Example #4
Source File: SSIFlastmod.java From Tomcat8-Source-Read with MIT License | 4 votes |
protected String formatDate(Date date, String configTimeFmt) { Strftime strftime = new Strftime(configTimeFmt, Locale.US); return strftime.format(date); }
Example #5
Source File: SSIFlastmod.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
protected String formatDate(Date date, String configTimeFmt) { Strftime strftime = new Strftime(configTimeFmt, Locale.US); return strftime.format(date); }
Example #6
Source File: SSIFlastmod.java From tomcatsrc with Apache License 2.0 | 4 votes |
protected String formatDate(Date date, String configTimeFmt) { Strftime strftime = new Strftime(configTimeFmt, Locale.US); return strftime.format(date); }