mirror of
https://github.com/php/doc-pl.git
synced 2026-03-24 07:02:07 +01:00
276 lines
7.0 KiB
XML
276 lines
7.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 130701dd4e64351d38da565ab3043a8f795698f8 Maintainer: grzesiek Status: ready -->
|
|
<!-- $Revision$ -->
|
|
<appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
<para>
|
|
The <constant>DATE_<replaceable>*</replaceable></constant>
|
|
są zdefiniowane i oferują standardowe reprezentacje daty,
|
|
które mogą być używane wraz z funkcjami formatu daty (takimi jak
|
|
<function>date</function>).
|
|
</para>
|
|
|
|
<variablelist>
|
|
<title>
|
|
Dostępne wartości <parameter>returnFormat</parameter> dla
|
|
<function>date_sunrise</function> oraz
|
|
<function>date_sunset</function>
|
|
</title>
|
|
|
|
<warning>
|
|
<simpara>
|
|
Te stałe są uznane za przestarzałe, począwszy od PHP 8.4.0.
|
|
Funkcje <function>date_sunrise</function> i
|
|
<function>date_sunset</function> są uznane za przestarzałe od PHP 8.1.0.
|
|
</simpara>
|
|
</warning>
|
|
|
|
<varlistentry xml:id="constant.sunfuncs-ret-timestamp">
|
|
<term>
|
|
<constant>SUNFUNCS_RET_TIMESTAMP</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Timestamp
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.sunfuncs-ret-string">
|
|
<term>
|
|
<constant>SUNFUNCS_RET_STRING</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Godziny:minuty (przykład: <literal>08:02</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.sunfuncs-ret-double">
|
|
<term>
|
|
<constant>SUNFUNCS_RET_DOUBLE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Godziny jako liczba zmiennoprzecinkowa (przykład <literal>8.75</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
<variablelist>
|
|
<title>Stałe <constant>DATE_<replaceable>*</replaceable></constant></title>
|
|
<varlistentry xml:id="constant.date-atom">
|
|
<term>
|
|
<constant>DATE_ATOM</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Atom (przykład: <literal>2005-08-15T15:52:01+00:00</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-cookie">
|
|
<term>
|
|
<constant>DATE_COOKIE</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
HTTP Cookies (przykład: <literal>Monday, 15-Aug-2005 15:52:01 UTC</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-iso8601">
|
|
<term>
|
|
<constant>DATE_ISO8601</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ISO-8601 (przykład: <literal>2005-08-15T15:52:01+0000</literal>)
|
|
</simpara>
|
|
<note>
|
|
<simpara>
|
|
Format ten nie jest zgodny z ISO-8601, ale pozostawiono go w ten sposób
|
|
ze względu na zgodność wsteczną. Zamiast tego należy użyć
|
|
<constant>DATE_ISO8601_EXPANDED</constant>,
|
|
<constant>DATE_ATOM</constant> w celu zapewnienia zgodności z ISO-8601
|
|
(patrz ISO8601:2004 sekcja 4.3.3 klauzula d).
|
|
</simpara>
|
|
</note>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-iso8601-expanded">
|
|
<term>
|
|
<constant>DATE_ISO8601_EXPANDED</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ISO-8601 Expanded (przykład: <literal>+10191-07-26T08:59:52+01:00</literal>)
|
|
</simpara>
|
|
<note>
|
|
<simpara>
|
|
Format ten pozwala na zakresy lat poza normalnym zakresem ISO-8601
|
|
<literal>0000</literal>-<literal>9999</literal> zawsze zawierając znak
|
|
Upewnia się też, że część strefy czasowej
|
|
(<literal>+01:00</literal>) jest zgodna z ISO-8601.
|
|
</simpara>
|
|
</note>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc822">
|
|
<term>
|
|
<constant>DATE_RFC822</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 822 (przykład: <literal>Mon, 15 Aug 05 15:52:01 +0000</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc850">
|
|
<term>
|
|
<constant>DATE_RFC850</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 850 (przykład: <literal>Monday, 15-Aug-05 15:52:01 UTC</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc1036">
|
|
<term>
|
|
<constant>DATE_RFC1036</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 1036 (przykład: <literal>Mon, 15 Aug 05 15:52:01 +0000</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc1123">
|
|
<term>
|
|
<constant>DATE_RFC1123</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 1123 (przykład: <literal>Mon, 15 Aug 2005 15:52:01 +0000</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc7231">
|
|
<term>
|
|
<constant>DATE_RFC7231</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 7231 (od PHP 7.0.19 i 7.1.5)
|
|
(przykład: <literal>Sat, 30 Apr 2016 17:52:13 GMT</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc2822">
|
|
<term>
|
|
<constant>DATE_RFC2822</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 2822 (przykład: <literal>Mon, 15 Aug 2005 15:52:01 +0000</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc3339">
|
|
<term>
|
|
<constant>DATE_RFC3339</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Taki sam jak <constant>DATE_ATOM</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rfc3339-extended">
|
|
<term>
|
|
<constant>DATE_RFC3339_EXTENDED</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Format RFC 3339 EXTENDED
|
|
(przykład: <literal>2005-08-15T15:52:01.000+00:00</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-rss">
|
|
<term>
|
|
<constant>DATE_RSS</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RSS (przykład: <literal>Mon, 15 Aug 2005 15:52:01 +0000</literal>).
|
|
&Alias; <constant>DATE_RFC1123</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.date-w3c">
|
|
<term>
|
|
<constant>DATE_W3C</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Konsorcjum World Wide Web (przykład: <literal>2005-08-15T15:52:01+00:00</literal>).
|
|
&Alias; <constant>DATE_RFC3339</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
</appendix>
|
|
<!-- 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:"~/.phpdoc/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
|
|
-->
|