--- type: "fhirpath-function" title: "FHIRPath Function: toTime" function: "toTime" category: "Conversion" section: "5.5.9.1" source: "fhirpath/functions.json" --- # FHIRPath Function: toTime _No canonical section match found in index.md._ ## Summary - **Category**: Conversion - **Section**: `5.5.9.1` - **Return Type**: `Time` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description If the input collection contains a single item, this function will return a single time if the item is a Time or a String convertible to a Time. ## Arguments - none ## Type Mapping - `Time-Time` - `String-Time` ## Example ```fhirpath '12:00:00'.toTime() // returns @T12:00:00 ```