now - script and chart function

This function returns a timestamp of the current time from the system clock. The default value is 1.

Syntax:  

now([ timer_mode])

Return data type: dual

Arguments:  

Argument Description
timer_mode

Can have the following values:

0 (time at last finished data load)
1 (time at function call)
2 (time when the document was opened)

Note: If you use the function in a load script, timer_mode=0 will result in the time of the last finished data load, while timer_mode=1 will give the time of the function call in the current data load.

Examples and results:  

Example Result

now( 0)

Returns the time when the last data load completed.

now( 1)

  • When used in a chart expression, this returns the time of the function call.
  • When used in a load script, this returns the time of the function call in the current data load.

now( 2)

Returns the time when the document was opened.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?