system.date.setTime
This feature is new in Ignition version 7.8.1
Description
            Takes in a date, and returns a copy of it with the time fields set as specified.
Syntax
            system.date.setTime (date, hour, minute, second )
-     
Parameters
 
Date date - The starting date.
Int hour - The hours (0-23) to set.
Int minute - The minutes (0-59) to set.
Int second - The seconds (0-59) to set.
-     
Returns
 
Date - A new date, set to the appropriate time.
-     
Scope
 
All
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 = system.date.getDate(2018, 6, 29)print system.date.setTime(date, 1, 37, 44) #This will print Fri June 29 01:37:44 PDT 2018