Internet Direct (Indy)
Home
PreviousUpNext
GMTToLocalDateTime Function

Converts a GMT time string to the local time.

Pascal
function GMTToLocalDateTime(
    S: string
): TIdDateTime;
Parameters 
Description 
GMT time string. 

TDateTime - Local date time as a Delphi data type.

GMTToLocalDateTime is a function that converts an Internet date/time string expressed in GMT or UTC format to a native Delphi TDateTime data type. 

The string contains the GMT representation of the date/time, in the following format: 

 

  Sun 15 Oct 2000 12:42:15 -0500
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.