Package rife.render

Class DateIso

java.lang.Object
rife.render.DateIso
All Implemented Interfaces:
ValueRenderer

public class DateIso extends Object implements ValueRenderer

Renders the current date in ISO 8601 format.

Usage:

   <!--v render:rife.render.DateIso/-->
   {{v render:rife.render.DateIso/}}
 
Since:
1.0
Author:
Erik C. Thauvin
See Also:
  • Constructor Details

    • DateIso

      public DateIso()
  • Method Details

    • render

      public String render(Template template, String valueId, String differentiator)
      Returns the current date in ISO 8601 format, encoded according to the template's encoding rules.
      Specified by:
      render in interface ValueRenderer
      Parameters:
      template - the template that is currently being rendered
      valueId - the value id that triggers the rendering of this value renderer
      differentiator - a differentiator that may be used to differentiate the rendering of this value renderer
      Returns:
      the current date in ISO 8601 format, encoded according to the template's encoding rules