★ wanayoo — archive 1999 http://www.php.net/manual/function.gmstrftime.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: gmstrftime
View the source code for this pageSearch the site



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


gmstrftime

(PHP3 >= 3.0.12, PHP4 >= 4.0RC2)

gmstrftime --  Format a GMT/CUT time/date according to locale settings

Description

string gmstrftime (string format, int timestamp)

Behaves the same as strftime() except that the time returned is Greenwich Mean Time (GMT). For example, when run in Eastern Standard Time (GMT -0500), the first line below prints "Dec 31 1998 20:00:00", while the second prints "Jan 01 1999 01:00:00".

Example 1. Gmstrftime() example


setlocale ('LC_TIME', 'en_US');
echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
      

See also strftime().


User Contributed Notes: gmstrftime


jrochkin@cs.oberlin.edu
24-Mar-2000 03:16
This function does not appear to be available in PHP 3. Some of the other gm functions are, but not this one. ?.


cepstein@yahoo.com
18-Apr-2000 11:48
Doesn't seem to exist in php4 either


 About Notes


Previous page
 gmmktime
 Updated
Sat, 12 Aug 2000
localtime 
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.