Returns the identifier of the timezone passed as argument.
1 date.timezone.getId
<date.timezone.getId>
<time /> !
</date.timezone.getId>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etime | TimeZone |
Returns | |
---|---|
Type | Description |
String | Returns the identifier of the given timezone. |
Exceptions
bad number of arguments
It is necessary to have an argument.
bad type - expected [java.util.TimeZone] while found [Object]
The argument which can be indicated to the function must be timeZone type.
Example
Example in which the Id of London is returned.
Copy
<xsql-script name='date_timezone_getId_sample1'> <body> <println><date.timezone.getId><date.timezone id="Europe/London"/></date.timezone.getId></println> </body> </xsql-script>