mirror of
https://github.com/php/doc-de.git
synced 2026-04-28 01:13:12 +02:00
b5c18907bb
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@147875 c90b9560-bf6c-de11-be94-00142212c4b1
86 lines
2.8 KiB
XML
86 lines
2.8 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.9 $ -->
|
|
<!-- EN-Revision: 1.8 Maintainer: betz Status: ready -->
|
|
|
|
<refentry id="function.gmdate">
|
|
<refnamediv>
|
|
<refname>gmdate</refname>
|
|
<refpurpose>Formatiert eine GMT/UTC Zeit- Datumsangabe</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Beschreibung:</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>gmdate</methodname>
|
|
<methodparam><type>string</type><parameter>Format</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>Timestamp</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Entspricht der <function>date</function> Funktion, außer dass als
|
|
Zeitangabe immer Greenwich Mean Time (GMT) zurück gegeben
|
|
wird. Steht ihr System in Deutschland (GMT + 01:00), wird im
|
|
Beispiel unten (1. Zeile) "Jan 01 1998 00:00:00" ausgegeben,
|
|
wogegen die 2. Zeile "Dec 31 1997 23:00:00" zurück gibt.
|
|
<example>
|
|
<title><function>gmdate</function> Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
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));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Bei den Microsoft Betriebssystemen ist die Systembibliothek, die diese
|
|
Funktionalität zur Verfügung stellt, defekt. Das hat zur Folge, dass
|
|
<function>gmdate</function> keine negativen Werte für den Parameter
|
|
<parameter>Timestamp</parameter> unterstützt. Weitere Details können Sie
|
|
folgenden Bugreports entnehmen:
|
|
<ulink url="&url.php.bugs;22620">#22620</ulink>,
|
|
<ulink url="&url.php.bugs;22457">#22457</ulink>
|
|
und <ulink url="&url.php.bugs;14391">#14391</ulink>.
|
|
</para>
|
|
<para>
|
|
Bei Unix/Linux Systemen ist dieses Problem nicht vorhanden. Hier funktionieren
|
|
die Systembibliotheken wie erwartet.
|
|
</para>
|
|
<para>
|
|
PHP kann keine defekten Systembibliotheken reparieren. Kontaktieren Sie den
|
|
Hersteller Ihres Betriebssystems und bitten Sie um Reparatur für dieses und
|
|
ähnliche Probleme.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
Siehe auch
|
|
<function>date</function>,
|
|
<function>mktime</function>,
|
|
<function>gmmktime</function> und
|
|
<function>strftime</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|