Indy 9
|
function GmtOffsetStrToDateTime(S: string): TDateTime;
The return value for GmtOffsetStrToDateTime will contain the time difference from S encoded as a TDateTime value, and can contain either a positive or a negative number of offset hours.
The return value for GmtOffsetStrToDateTime can be 0.0 if an error occurs during calculation of the offset value.
GmtOffsetStrToDateTime can be used to create a value that can be added to a TDateTime value expressed in another time zone, to adjust to the local time zone.
To convert a TDateTime to an Internet Time difference, use the DateTimeToGmtOffSetStr function.