Description:
Get the time part from the datetime value.
Syntax:
time(datetimeExp)
Note:
The function gets the time part from the datetime value datetimeExp. The result is accurate to millisecond by default. The format must be consistent with the time format in the configuration information. By default, the configure information will not be displayed in millisecond.
Parameter:
datetimeExp |
Datetime data |
Option:
@m |
Accurate to minute |
@s |
Accurate to second |
Return value:
Time value
Example:
time(now()) |
16:28:26400 |
time@s(now()) |
16:28:260 |
time@m(now()) |
16:28:000 |
Related function: