---
schema_version: "1"
id: 20e7c7ed462229ce30f8348d3d3d2db61718d5dfc26a89fc1a56fa7f08aa0257
title: toMilliseconds
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-timer-functions-tomilliseconds.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-timer-functions-tomilliseconds
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ff34af992d60b308873ff9376727615cdaef77c8bae80a63248baf0622c050a6
description: MuleSoft Documentation Site
release: "2.4"
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 }
```