--- title: "toTime()" slug: "edi-to-timestamp" updated: 2025-11-13T06:57:50Z published: 2025-11-14T02:46:26Z canonical: "docs.lobstersoftware.com/edi-to-timestamp" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # toTime() **Diese Funktion ist veraltet (deprecated).** Liefert die aufgelöste Zeit eines EDIFACT-DTM-Segments unter Nutzung des Format-Codes **a** und des kodierten Datum-Wertes **b**. Wird ein unerlaubter Format-Code verwendet oder ein kodierter Datumswert, der nicht zum Format-Code passt, bricht die Funktion mit einem Fehler ab (siehe Beispiele). ## Parameter | Parameter | Beschreibung | | --- | --- | | a | Format-Code. Erlaubte Codes: *5, 10, 201-205, 301-304, 401-402, 404-405.* | | b | Kodierter Datumswert. | | c | Time Zone. | ## Beispiele Das Jahr im Beispiel sei 2011. | Parameter a | Parameter b | Parameter c | Ergebnis | | --- | --- | --- | --- | | 305 | 12240802 | | Abbruch mit Fehler (nicht erlaubter Code). | | 201 | 9911121200 | | 1999-11-12 12:00:00.0 |