%dw 2.0
import * from dw::util::Coercions
output application/json
---
{
   toLocalTimeEx: toLocalTime("23:57:59"),
   toLocalTimeEx2: toLocalTime("13:44:12.283","HH:mm:ss.n")
}
toLocalTime
toLocalTime(str: String, format: String | Null = null, locale: String | Null = null): LocalTime
Transforms a String value into a LocalTime value
and accepts a format and locale.
Introduced in DataWeave version 2.4.0.
Parameters
| Name | Description | 
|---|---|
  | 
The   | 
  | 
The formatting to use on the   | 
  | 
Optional ISO 3166 country code to use, such as   | 



