Tag Archives: get_gmt_from_date


Returns a date in the GMT equivalent.Requires and returns a date in the Y-m-d H:i:s format. Simply subtracts the value of the ‘gmt_offset’ option. Return format can be overridden using the $format parameter. The DateTime and DateTimeZone classes are used to respect time zone differences in DST.


Continue reading