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

## [](#tomilliseconds1)toMilliseconds(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 }
```