Skip to content

Instantly share code, notes, and snippets.

@heavenshell
Created March 9, 2011 05:29
Show Gist options
  • Save heavenshell/861739 to your computer and use it in GitHub Desktop.
Save heavenshell/861739 to your computer and use it in GitHub Desktop.
PHPDomain

Class DateTime

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

    Set the date in the datetime object

    :param int $year: The year.
    :param int $month: The month.
    :param int $day: The day.

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

    Set the time

    :param int $hour: The hour
    :param int $minute: The minute
    :param int $second: The second

.. php:const:: ATOM

    Y-m-d\TH:i:sP

.. php:attr:: testattr

    Value of some attribute


.. php:method:: OtherClass::staticMethod()

    A static method.

Test Case - Global symbols with no namespaces

:php:func:`DateTime::setTime()`

:php:func:`~DateTime::setDate()`

:php:func:`DateTime::ATOM`

:php:func:`DateTime::$testattr`

:php:func:`OtherClass::staticMethod`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment