[OS-JIRA] Created: (WOL-755) Velocity EOGenerator Date In Templates

From: Michael Hast (JIRA) ("Michael)
Date: Thu Mar 13 2008 - 11:36:27 EDT

  • Next message: Michael Hast: "Re: Velocity EOGenerator Date In Templates"

    Velocity EOGenerator Date In Templates
    --------------------------------------

                     Key: WOL-755
                     URL: http://issues.objectstyle.org/jira/browse/WOL-755
                 Project: WOProject/WOLips
              Issue Type: Improvement
              Components: wolips
        Affects Versions: WOLips stable 3.3.4906 for Eclipse 3.3.2
             Environment: Mac OS X 10.4.11
    Eclipse 3.3.2
    WOLips 4896
                Reporter: Michael Hast

    I would like Velocity's DateTool to be added to the Velocity EOGenerator context as the variable $date. According to the documentation, DateTool can be used to format dates in various ways:

    Example of formatting the "current" date:
        $date -> Oct 19, 2003 9:54:50 PM
        $date.long -> October 19, 2003 9:54:50 PM PDT
        $date.medium_time -> 9:54:50 PM
        $date.full_date -> Sunday, October 19, 2003
        $date.get('default','short') -> Oct 19, 2003 9:54 PM
        $date.get('yyyy-M-d H:m:s') -> 2003-10-19 21:54:50

    I will try to attach velocity-tools-generic-1.4.jar which looks like it is compatible with Velocity 1.5.

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Thu Mar 13 2008 - 11:37:58 EDT