Contact Free trial Login

currentMilliseconds

currentMilliseconds(): Number

Returns the current time in milliseconds.

Example

This example shows the time in milliseconds when the function executed.

Source

%dw 2.0
import * from dw::util::Timer
output application/json
---
{ "currentMilliseconds" : currentMilliseconds() }

Output

{ "currentMilliseconds": 1532923168900 }

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub