Indy 9
GMTToLocalDateTime
Unit: IdGlobal
Converts a GMT time string to the local time.
function GMTToLocalDateTime(S: string): TDateTime;
Unit
IdGlobal
Parameters
S: string
GMT time string.
Return Value
TDateTime - Local date time as a Delphi data type.
Description
GMTToLocalDateTime is a TDateTime function that converts an Internet date/time string expressed in GMT or UTC format to a native Delphi TDateTime data type.

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

  Sun 15 Oct 2000 12:42:15 -0500

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.