mirror of
https://github.com/php/doc-ro.git
synced 2026-03-24 15:32:07 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/ro/trunk@348194 c90b9560-bf6c-de11-be94-00142212c4b1
105 lines
3.0 KiB
XML
105 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- $Author$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: simionea Status: ready -->
|
|
<!-- CREDITS: adiju -->
|
|
|
|
<refentry xml:id="function.gmstrftime" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>gmstrftime</refname>
|
|
<refpurpose>Formatează o dată/oră GMT/UTC în conformitate cu setările locale</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>gmstrftime</methodname>
|
|
<methodparam><type>string</type><parameter>format</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>timestamp</parameter><initializer>time()</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Se comportă în același mod ca și <function>strftime</function> cu excepția
|
|
că ora întoarsă este Greenwich Mean Time (GMT) - Ora Medie Greenwich. Spre
|
|
exemplu, când se rulează în Eastern Standard Time (GMT -0500), prima linie
|
|
de mai jos afișează "Dec 31 1998 20:00:00", în timp ce a doua afișează
|
|
"Jan 01 1999 01:00:00".
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>format</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Vezi descrierea în <function>strftime</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
&date.timestamp.description;
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Întoarce un string formatat în conformitate cu string-ul format, utilizând
|
|
<parameter>timestamp</parameter>-ul dat sau ora locală curentă, dacă nu este
|
|
dat un timestamp. Denumirile lunilor și zilelor săptămânii și alte string-uri
|
|
ce depind de limbă respectă setările locale stabilite cu ajutorul
|
|
<function>setlocale</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemplu <function>gmstrftime</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
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>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>strftime</function></member>
|
|
</simplelist>
|
|
</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:"~/.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
|
|
-->
|