---
schema_version: "1"
id: 96911d28ffe74ce18fb1f5d4003959987e943f17e0667873a53ab7780a8241d6
title: isTimeType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-types-functions-istimetype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-types-functions-istimetype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5a3d8c6c8b1658cc0966d95f41c3e58f973737fd562a3ecae77b842bcb89c9ed
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# isTimeType

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

## isTimeType(t: Type): Boolean

Returns `true` if the input is the Time type.

_Introduced in DataWeave version 2.3.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>t</code></p></td><td><p>The type to check.</p></td></tr></tbody></table>

### Example

This example shows how `isTimeType` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Types
type ATime = Time
output application/json
---
{
   a: isTimeType(ATime),
   b: isTimeType(Time),
   c: isTimeType(String),
}
```

#### Output

```Json
{
  "a": true,
  "b": true,
  "c": false
}
```
