---
schema_version: "1"
id: d74b5e559dd96fc42ccdac6fdc65e9c682fa32670b9f5cbb50f4934d40bb3780
title: toMilliseconds
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-timer-functions-tomilliseconds.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-timer-functions-tomilliseconds
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c0520696b642670216b7f3ad8e8837bd17cabf23acb9c1dc6426b1c63eb36250
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# toMilliseconds

## [](#tomilliseconds1)toMilliseconds(date: DateTime): Number

指定された日時のミリ秒での表現を返します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>date</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">評価する ​<code>DateTime</code>​。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、日時をミリ秒単位で表示します。

#### [](#ソース)ソース

```Dataweave
%dw 2.0
import * from dw::util::Timer
output application/json
---
{ "toMilliseconds" : toMilliseconds(|2018-07-23T22:03:04.829Z|) }
```

#### [](#出力)出力

```XML
{ "toMilliseconds": 1532383384829 }
```