Was this page helpful?

Date.DiffMinutes

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    date.DiffMinutes(first : str, second : str) : num

    Compute the difference between the first and second date in minutes.

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    first
    str The first date.
    second
    str
    The second date.

    Result

    The difference between the first and second date in minutes.

    Samples


    Output

    To display the difference in minutes between now and an hour from now:

    {{ date.DiffMinutes(date.now, date.AddHours(date.now, 1)) }} 

    -60

    To display the difference in minutes between now and 01/01/2000:

    {{ date.DiffMinutes(date.now, "01/01/2000") }} 

    7081784.53333333

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

    Copyright © 2011 MindTouch, Inc. Powered by