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

    • Integer millis - The number of milliseconds since epoch time.
  • Results

    • Date - The date representing the given number of milliseconds since epoch time.

Code Examples​

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