This function allows to obtain the second of the inserted date.
1 date.second
<date.second>
<var /> ?
</date.second>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | Timestamp |
Returns | |
---|---|
Type | Description |
Integer | You get the second of the date. |
Example
Copy
<xsql-script name='date_second_sample1'> <body> <set name='var'> <date format='dd-MM-yyyy HH:mm:ss'>01-02-2004 21:30:15 GMT</date> </set> <println><date.second><var /></date.second></println> </body> </xsql-script>
Returns:
Copy
15