Returns the instance of the object TimeZone passed as argument.
1 date.timezone
<date.timezone Id='Id'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
AId | String | It is the code of the timezone which you want to obtain. The input parameter must be an existing code, so that the output result is a timeZone. For example, it will return the appropriate timeZone if the parameter is Europe / Madrid, but it will not if it passes Europe / Barcelona. |
Returns | |
---|---|
Type | Description |
TimeZone | Returns the object timezone which describes the entry time zone. |
Example
Example in which it returns the timezone of Madrid.
Copy
<xsql-script name='date_timezone_sample1'> <body> <println><date.timezone id='Europe/Madrid' /></println> </body> </xsql-script>
Example
Example in which the timezone of Barcelona returns empty.
Copy
<xsql-script name='date_timezone_sample2'> <body> <println><date.timezone id='Europe/Barcelona' /></println> </body> </xsql-script>