CA SDM::.SPEL::. Now

Document created by TMACUL Champion on Jan 25, 2017
Version 1Show Document
  • View in full screen mode

Now

Overview

Return current date and time in datetime format. It can be converted to Unix timestamp using cast to int.

Usage

<source lang="javascript"> date now() </source>

Results

Current date and time in datetime format.

Examples

<source lang="javascript"> chg.modified_date = now(); alg.time_spent = now() - time_stamp;

if ((int)now() > (int)need_by-600) { set_return_data(TRUE); } else { set_return_data(FALSE); } </source>

1 person found this helpful

Attachments

    Outcomes