Skip to main content
Version: 8.1

fromMillis

This function is used by Ignition's Expression language.

Description​

Creates a date object given a time, in milliseconds, past Unix epoch (1 January 1970 at midnight UTC).

Syntax​

fromMillis(millis)

Parameters​

TypeParameterDescription
IntegermillisThe number of milliseconds since Unix epoch time (1 January 1970 at midnight UTC).

Returns​

Date - A date object representing the given number of milliseconds since epoch time.

Examples​

Code Snippet
fromMillis(1503092125000)//This example will print out the date "Fri Aug 18 14:35:25 PDT 2017"