cvs: /phpdoc/functions datetime.sgml

From: Date: Tue, 13 Jul 1999 16:22:30 +0000
Subject: cvs: /phpdoc/functions datetime.sgml
Groups: php.dev 
Request: Send a blank email to php-dev+get-8456@lists.php.net to get a copy of this message
sklar Tue Jul 13 16:22:30 1999 EDT Modified files: /phpdoc/functions datetime.sgml Log: gmstrftime Index: phpdoc/functions/datetime.sgml diff -u phpdoc/functions/datetime.sgml:1.7 phpdoc/functions/datetime.sgml:1.8 --- phpdoc/functions/datetime.sgml:1.7 Mon Jun 21 15:05:20 1999 +++ phpdoc/functions/datetime.sgml Tue Jul 13 16:22:30 1999 @@ -188,6 +188,36 @@ </refentry> + <refentry id="function.gmstrftime"> + <refnamediv> + <refname>gmstrftime</refname> + <refpurpose>format a GMT/CUT time/date according to locale settings</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcdef>string <function>gmstrftime</function></funcdef> + <paramdef>string <parameter>format</parameter></paramdef> + <paramdef>int <parameter>timestamp</parameter></paramdef> + </funcsynopsis> + <para> + Behaves the same as <function>strftime</function> 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> + <title><function>gmstrftime</function> example</title> + <programlisting> +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"; +</programlisting></example> + </para><para> + See also <function>strftime</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.getdate"> <refnamediv> <refname>getdate</refname>

« previous php.dev (#8456) next »