# LGF_StringToTime (FC / 3.1.0)

Overview

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. MUST have SEPARATOR. Example: `1D-3H-45M-6S-0MS`

### Output parameter

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

## Change log

Version & Date | Change description
--- | ---
| 1.0.0 | Simatic Systems Support
| 02.07.2019 | First released version
| 1.0.1 | Simatic Systems Support
| 09.07.2019 | Further improvements and code optimization
| 1.0.2 | Simatic Systems Support
| 30.07.2019 | Add ENO handling
| 3.0.0 | Simatic Systems Support
| 23.04.2020 | Set version to V3.0.0 Harmonize the version of the whole library
| 3.0.1 | Simatic Systems Support
| 23.02.2021 | Insert documentation
| 3.1.0 | Simatic Systems Support
| 17.07.2025 | Implemented separator functionality