CA Service Management

 View Only

CA SDM::.SPEL::. Now 

Jan 25, 2017 07:31 AM

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>

Statistics
0 Favorited
11 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.