cvs: peardoc /en/package datetime.xml /en/package/datetime date-holidays.xml /en/package/datetime/date-holidays example.xml intro.xml
| From: | Stephan Schmidt | Date: | Sun, 22 Aug 2004 11:37:17 +0000 |
| Subject: | cvs: peardoc /en/package datetime.xml /en/package/datetime date-holidays.xml /en/package/datetime/date-holidays example.xml intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4776@lists.php.net to get a copy of this message | ||
schst Sun Aug 22 07:37:17 2004 EDT
Added files:
/peardoc/en/package/datetime date-holidays.xml
/peardoc/en/package/datetime/date-holidays example.xml intro.xml
Modified files:
/peardoc/en/package datetime.xml
Log:
added some very basic introduction and example for Date_Holidays to get Carsten started with the
docs
http://cvs.php.net/diff.php/peardoc/en/package/datetime.xml?r1=1.5&r2=1.6&ty=u
Index: peardoc/en/package/datetime.xml
diff -u peardoc/en/package/datetime.xml:1.5 peardoc/en/package/datetime.xml:1.6
--- peardoc/en/package/datetime.xml:1.5 Thu Jul 15 05:13:36 2004
+++ peardoc/en/package/datetime.xml Sun Aug 22 07:37:16 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<chapter id="package.datetime">
<title>Date and Time</title>
@@ -13,6 +13,7 @@
</sect1>
&package.datetime.calendar;
+ &package.datetime.date-holidays;
</chapter>
<!-- Keep this comment at the end of the file
http://cvs.php.net/co.php/peardoc/en/package/datetime/date-holidays.xml?r=1.1&p=1
Index: peardoc/en/package/datetime/date-holidays.xml
+++ peardoc/en/package/datetime/date-holidays.xml
<!-- $Revision: 1.1 $ -->
<sect1 id="package.datetime.date-holidays">
<title>Date_Holidays</title>
<para>
Holiday calculation package.
</para>
<para>
This chapter describes how to use PEAR::Date_Holidays
</para>
&package.datetime.date-holidays.intro;
&package.datetime.date-holidays.example;
</sect1>
<!-- 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
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
-->
http://cvs.php.net/co.php/peardoc/en/package/datetime/date-holidays/example.xml?r=1.1&p=1
Index: peardoc/en/package/datetime/date-holidays/example.xml
+++ peardoc/en/package/datetime/date-holidays/example.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.datetime.date-holidays.example">
<refnamediv>
<refname>Example</refname>
<refpurpose>Example for the usage of Date_Holidays</refpurpose>
</refnamediv>
<refsect1 id="package.datetime.date-holidays.example.example1">
<title>Basic example</title>
<para>
This example shows you, how to calculate the easter
date of 2005.
</para>
<programlisting role="php">
<![CDATA[require_once "Date/Holidays.php";
$germany = &Date_Holidays::factory('Germany', 2004, 'en_EN');
if (Date_Holidays::isError($germany)) {
die('Factory was unable to produce driver-object');
}
$easter = &$germany->getHoliday('easter', 'de_DE');
if (!Date_Holidays::isError($easter)) {
print_r($easter->toArray());
}]]>
</programlisting>
<para>
This will return an array in the following format:
</para>
<programlisting>
Array
(
[internalName] => easter
[title] => Easter Sunday
[date] => date Object
(
[year] => 2004
[month] => 04
[day] => 11
[hour] => 0
[minute] => 0
[second] => 0
[tz] => date_timezone Object
(
[id] => UTC
[longname] => Coordinated Universal Time
[shortname] => UTC
[hasdst] =>
[dstlongname] => Coordinated Universal Time
[dstshortname] => UTC
[offset] => 0
[default] =>
)
)
)
</programlisting>
</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
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=datetime fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/peardoc/en/package/datetime/date-holidays/intro.xml?r=1.1&p=1
Index: peardoc/en/package/datetime/date-holidays/intro.xml
+++ peardoc/en/package/datetime/date-holidays/intro.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.datetime.date-holidays.intro">
<refnamediv>
<refname>Introduction</refname>
<refpurpose>
What <classname>Date_Holidays</classname> can do
</refpurpose>
</refnamediv>
<refsect1>
<title>Introduction</title>
<para>
Date_Holidays is a driver-based holiday calculation package. It helps
you checking, whether a specific date is a holiday in a specific country
or religion. Furthermore you can calculate the date of any holiday supported
in the driver for the country, region or religion.
</para>
<para>
Date_Holidays supports I18N by storing the names of the different
holidays in INI files for each language.
</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
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
-->