timestamp = getGMT( [ timeStamp ] );
The getGMT subprocedure returns the GMT equivalent of the input timeStamp value. If not input timeStamp value is specified, the current system timestamp is used.
This subprocedure converts the input timestamp value into the GMT equivalent by adding the UTC Offset to the timestamp. Since both the date and time may change during the conversion, a full TimeStamp value must be specified. The special value %TIMESTAMP() may be specified to indicate that the current system timestamp is used--but it is also the default for this subprocedure.
/free
cookieExpDate = getGMT(%timeStamp() + %minutes(30) ); // Returns GMT + 30 minutes
/end-free
The two primary uses for GETGMT are:
Return to RPGOpen.com