This function is used in Python Scripting.

Description

Creates a date object given a millisecond value.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.date.fromMillis(millis)

  • Parameters

Long millisThe number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC (GMT).

  • Returns

Date - A new date object.

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# This example will print out the date "Fri Aug 18 14:35:25 PDT 2017"
 
print system.date.fromMillis(1503092125000)
Keywords

system date fromMillis, date.fromMillis