User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Skip to end of metadata
Go to start of metadata

This function is used by Ignition's Expression language.

Description

Returns the current time. The host computer's system clock is used, meaning that if this expression is being evaluated in a running client, the computer running the client's system clock is used.

This function is one of the few expression functions that will poll. If you do not specify a pollRate, it will default to 1,000ms. If you do not want this function to poll, use a poll rate of zero.

Syntax

now([pollRate])

  • Parameters

Integer pollRate - The poll rate in milliseconds to update the time at. Default is 1000 ms. [optional]

  • Results

Date - The current time.

Examples
Code Snippet
now() //Returns the current time, updates every second.
Code Snippet
now(13000) //Returns the current time, updates every 13 seconds.
Code Snippet
dateFormat(now(0), "MMM d, h:mm a") //Returns a string representing the current time, formatted like "Feb 12, 9:54 AM". Does not update.
  • No labels