Skip to main content
Version: 8.1

This function is used in Python Scripting.


Takes in a date, and returns a copy of it with the time fields set as specified.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax, hour, minute, second)


DatedateThe starting date.
IntegerhourThe hours (0-23) to set.
IntegerminuteThe minutes (0-59) to set.
IntegersecondThe seconds (0-59) to set.


Date - A new date, set to the appropriate time.


Gateway, Vision Client, Perspective Session

Code Examples

Code Snippet
# This example will set the date object to the current date with the time set to 01:37 in the morning and 44 seconds.

date =, 6, 29) #getDate is zero based, so a month parameter of 6 will return July.
print, 1, 37, 44) #This will print Sun July 29 01:37:44 PDT 2018


system date setTime, date.setTime