Skip to main content
Version: 7.9

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

None

Returns

Date - A new date, set to the current date and time.

Scope

All

Code Examples

Example #1
# This example will set a calendar component to the current date and time.

event.source.parent.getComponent('Calendar').date = system.date.now()