★ wanayoo — archive 1999 http://www.php.net/manual/function.gmdate.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Date/time
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Date/time
* checkdate
* date
* getdate
* gettimeofday
* gmdate
* gmmktime
* gmstrftime
* localtime
* microtime
* mktime
* strftime
* time
* strtotime
Manual: gmdate
View the source code for this pageSearch the site



Previous page
 gettimeofday
 Updated
Sat, 12 Aug 2000
gmmktime 
Next page


gmdate

(PHP3 , PHP4 )

gmdate -- Format a GMT/CUT date/time

Description

string gmdate (string format, int timestamp)

Identical to the date() function except that the time returned is Greenwich Mean Time (GMT). For example, when run in Finland (GMT +0200), the first line below prints "Jan 01 1998 00:00:00", while the second prints "Dec 31 1997 22:00:00".

Example 1. Gmdate() example


echo date ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
echo gmdate ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
      

See also date(), mktime(), and gmmktime().


User Contributed Notes: gmdate


sRp@portico.org
17-Sep-1999 08:39
Although not shown as such above, the timestamp parameter is optional.


 About Notes


Previous page
 gettimeofday
 Updated
Sat, 12 Aug 2000
gmmktime 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.