system.date.now
This function is used in Python Scripting.
Description​
Returns a java.util.Date object that represents the current time according to the local system clock.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax​
system.date.now()
Parameters​
Nothing
Returns​
Date - A new date, set to the current date and time.
Scope​
Gateway, Vision Client, Perspective Session
Code Examples​
Code Snippet
# This example will set a calendar component to the current date and time.
event.source.parent.getComponent('Calendar').date = system.date.now()