Command AP Timestamp to GMT

4D Pack

AP Timestamp to GMT

version 6.0.5


AP Timestamp to GMT (localDate; localTime; gmtDate; gmtTime) String

ParameterTypeDescription
localDateDateLocal date to use for the conversion
localTimeTimeLocal time to use for the conversion
gmtDateDateGMT date returned by the conversion
gmtTimeTimeGMT time returned by the conversion

Function result String GMT time in compliance with RFC standard

Description

AP Timestamp to GMT converts local date and time to GMT date and time based on the machine location (set with the Date/Time control panel). It returns a string in the following format:

"Weekday, DD MM YYYY HH:MM:SS GMT"

This format is in compliance with RFC 822 standard.

Example

Given the date of Thursday 11/13/97 and the time of 2:35PM (Paris time zone), the function returns the string "Thu, 13 Nov 1997 13:35:00 GMT". $gmtd is set to 11/13/97 and $gmtt to 13:35:00.

   $s:=AP Timestamp to GMT(Current date;Current time;$gmtd;$gmtt)