Sets the time components of the given DateTime.

Syntax

Smartsite SXML CopyCode image Copy Code
datetime datetime.settime(datetime dt, integer hour, integer minutes, integer seconds)

Parameters

Name Data Type Description
dt DateTime A DateTime.
hour Integer The hours (0 through 23).
minutes Integer The minutes (0 through 59).
seconds Integer The seconds (0 through 59).

Return Value

Data Type Description
DateTime A new DateTime with the same date as the given DateTime, and the time set to the given time component values.

Expand image Example

SXML