AP Timestamp to GMT

4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next

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 resultStringGMT 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)

4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next