# LGF_StringToTime (FC / V3.0.1)

Author: Siemens Digital Industry

## Short description

The function converts a variable of the data type `String` into a variable of the system data type `Time`.

### Block Interface

| LGF_StringToTime (FC) |
--- | --- | ---
String |  |  | timeValue |  | Ret_Val |  |  | Time

### Input parameter

Identifier | Data type | Description
--- | --- | ---
timeValue | String | Time to be converted as string Example: `1D3H45M6S0MS`

### Output parameter

Identifier | Data type | Description
--- | --- | ---
Ret_Val | Time | Converted time value Example: `T#1D_3H_45M_6S`

## Change log

Version & Date | Change description
--- | ---
| 01.00.00 | Simatic Systems Support
| 02.07.2019 | First released version
| 01.00.01 | Simatic Systems Support
| 09.07.2019 | Further improvements and code optimization
| 01.00.02 | Simatic Systems Support
| 30.07.2019 | Add ENO handling
| 03.00.00 | Simatic Systems Support
| 23.04.2020 | Set version to V3.0.0 Harmonize the version of the whole library
| 03.00.01 | Simatic Systems Support
| 23.02.2021 | Insert documentation