---
schema_version: "1"
id: fd86eb42921aeaa783efc262fca58e8822c7d7cff7e4331bff9b4f1abfce60dc
title: currentMilliseconds
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-timer-functions-currentmilliseconds.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-timer-functions-currentmilliseconds
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 07c11b3a6f13efc7da331df60fe5143ba697513fe3c706fa7a7310cb5d494ba1
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# currentMilliseconds

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## currentMilliseconds(): Number

Returns the current time in milliseconds.

### Example

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

#### Source

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

#### Output

```XML
{ "currentMilliseconds": 1532923168900 }
```
