Was this page helpful?

Date.Timezone

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    date.Timezone(datetime : str) : str

    Get the time-zone component of date-time. 

    Usage Restrictions

    9.02 or later.

    Parameters

    Name Type Description
    datetime str The date to examine for the timezone

    Result

    The timezone of the passed datetime.

    Samples

      Output

    To display the timezone of the current datetime object:

    {{ date.timezone(date.now) }} 
    GMT

    To display the timezone of a custom dateime object

    {{ date.timezone(date.Parse{ text :"20000203", format: "yyyyMMdd", timezone : "+09:00"}) }}
    GMT

     

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

    Copyright © 2011 MindTouch, Inc. Powered by