%dw 2.0
import * from dw::core::Types
type ALocalDateTime = LocalDateTime
output application/json
---
{
a: isLocalDateTimeType(ALocalDateTime),
b: isLocalDateTimeType(LocalDateTime),
c: isLocalDateTimeType(String),
}
isLocalDateTimeType
isLocalDateTimeType(Type): Boolean
Returns true
if the input is the LocalDateTime type.
Introduced in DataWeave 2.3.0. Supported by Mule 4.3 and later.
Example
This example shows how isLocalDateTimeType
behaves with different inputs.