Was this page helpful?

Date.AddMinutes

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    date.AddMinutes(datetime : str, minutes : num) : str 

    Adds the specified number of minutes to a date and returns the result.  The number of minutes can be positive or negative. 

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    datetime
    str The date to which to add minutes.
    minutes
    num
    The number of minutes to add.

    Result

    A new date.

    Samples


    Output

    To add 30 minutes to the current date:

    {{ date.AddMinutes(date.now, 30) }} 

    Fri, 25 May 2012 08:37:07 GMT

    To subtract 30 minutes from a constant date:

    {{ date.AddMinutes("01/01/2000", -30) }} 

    Fri, 31 Dec 1999 23:30:00 GMT

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by