Package sunlabs.brazil.sunlabs
Class DateTemplate
- java.lang.Object
-
- sunlabs.brazil.template.Template
-
- sunlabs.brazil.sunlabs.DateTemplate
-
- All Implemented Interfaces:
TemplateInterface
public class DateTemplate extends Template
Template for doing date and time calculations and formatting.<date format="strftime style date string" ?time=nnn? ?zone=nnn? ?scan="xxx"? ?set="xxx"? >
- format
- A "strftime" style date string (defaults to "%D %T").
- time
- Number of seconds since the epoc (defaults to now);
- ms
- Number of ms since the epoc (if time is not specified)
- scan
- A human readable date string to use. time is used for relative dates. If not specified, time or ms are used as the time. The algorithm (and implementation) was borrowed from the TCL "clock scan" command.
- zone
- If specified, then the specified timezone is used. GMT is used for unrecognized zones. Oherwise the server's timezone is used. (Example: "GMT");
- set
- if specified, set the indicated variable with the result; do not substitute the result inline.
-
-
Constructor Summary
Constructors Constructor Description DateTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
tag_date(RewriteContext hr)
-
-
-
Method Detail
-
tag_date
public void tag_date(RewriteContext hr)
-
-