Was this page helpful?

Date.TimezoneNow

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    date.TimezoneNow(timezone : str?) : str

    Current date-time in time-zone format.

    Usage Restrictions

    9.02 or later.

    Parameters

    Name Type Description
    timezone str? time-zone offset (format: ±hh:mm, optional, default: GMT)

    Result

    The current time in the appropriate timezone

    Samples

      Output

    To display the timezone of the current datetime object:

    {{ date.timezonenow();<br/>date.timezonenow("+05:00") }} 
    Fri, 25 May 2012 08:27:19 GMT
    Fri, 25 May 2012 13:27:19 +05:00

     

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

    Copyright © 2011 MindTouch, Inc. Powered by