GMT Date and Time Print PHP Modification
Can someone please let me know how I modify this...
echo date('l jS F Y, h:i A e', time());
Wednesday 23rd April 2014, 10:52 AM London GMT
Wednesday 23rd April 2014, 10:52 AM Europe/London
Thank you for any assistance provided.
You could just use:
The 'e' in the date() function displays the timezone identifier, which is 'Europe/London'. As far as I know there is not a timezone identifier in PHP that is 'London GMT', thus the date() function can't actually return that part of the string you want. Thus it's easier to just add it to the end as an actual string as demonstrated above.
echo date('l jS F Y, h:i A', time()) . " London GMT";
"Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)