Usage Example
=============

This is source:

.. code:: rst

  .. php:class:: DateTime

     Datetime class

     .. php:method:: setDate($year, $month, $day)

        Set the date.

        :param int $year: The year.
        :param int $month: The month.
        :param int $day: The day.
        :returns: Either false on failure, or the datetime object for method chaining.


     .. php:method:: setTime($hour, $minute[, $second])

        Set the time.

        :param int $hour: The hour
        :param int $minute: The minute
        :param int $second: The second
        :returns: Either false on failure, or the datetime object for method chaining.

     .. php:const:: ATOM

        Y-m-d\TH:i:sP

Result
-----------------

.. php:class:: DateTime
   :nocontentsentry:

   Datetime class

   .. php:method:: setDate($year, $month, $day)
      :nocontentsentry:

      Set the date.

      :param int $year: The year.
      :param int $month: The month.
      :param int $day: The day.
      :returns: Either false on failure, or the DateTime object for method chaining.


   .. php:method:: setTime($hour, $minute[, $second])
      :nocontentsentry:

      Set the time.

      :param int $hour: The hour
      :param int $minute: The minute
      :param int $second: The second
      :returns: Either false on failure, or the DateTime object for method chaining.

   .. php:const:: ATOM
      :nocontentsentry:

      Y-m-d\TH:i:sP

Cross referencing
-----------------

From other place, you can create cross reference like that:

.. code:: rst

   You can modify a DateTime's date using :php:meth:`DateTime::setDate`.

Result
-----------

You can modify a DateTime's date using :php:meth:`DateTime::setDate`.

