Date
[ class tree: Date ] [ index: Date ] [ all elements ]

Class: myDate

Source Location: /Date-1.4/tests/testunit_date.php

Class Overview

Date
   |
   --myDate

Generic date handling class for PEAR.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Date

Date::Date()
Constructor
Date::addSeconds()
Adds a given number of seconds to the date
Date::addSpan()
Adds a time span to the date
Date::after()
Test if this date/time is after a certian date/time
Date::before()
Test if this date/time is before a certain date/time
Date::compare()
Compares two dates
Date::convertTZ()
Converts this date to a new time zone
Date::convertTZbyID()
Converts this date to a new time zone, given a valid time zone ID
Date::copy()
Copy values from another Date object
Date::equals()
Test if this date/time is exactly equal to a certian date/time
Date::format()
Date pretty printing, similar to strftime()
Date::getDate()
Get a string (or other) representation of this date
Date::getDay()
Returns the day field of the date object
Date::getDayName()
Gets the full name or abbriviated name of this weekday
Date::getDayOfWeek()
Gets the day of the week for this date
Date::getDaysInMonth()
Gets number of days in the month for this date
Date::getHour()
Returns the hour field of the date object
Date::getJulianDate()
Get the Julian date for this date
Date::getMinute()
Returns the minute field of the date object
Date::getMonth()
Returns the month field of the date object
Date::getMonthName()
Gets the full name or abbriviated name of this month
Date::getNextDay()
Get a Date object for the day after this one
Date::getNextWeekday()
Get a Date object for the weekday after this one
Date::getPrevDay()
Get a Date object for the day before this one
Date::getPrevWeekday()
Get a Date object for the weekday before this one
Date::getQuarterOfYear()
Gets the quarter of the year for this date
Date::getSecond()
Returns the second field of the date object
Date::getTime()
Get this date/time in Unix time() format
Date::getWeekOfYear()
Gets the week of the year for this date
Date::getWeeksInMonth()
Gets the number of weeks in the month for this date
Date::getYear()
Returns the year field of the date object
Date::inDaylightTime()
Tests if this date/time is in DST
Date::isFuture()
Determine if this date is in the future
Date::isLeapYear()
Determine if the year in this date is a leap year
Date::isPast()
Determine if this date is in the past
Date::setDate()
Set the fields of a Date object based on the input date and format
Date::setDay()
Set the day field of the date object
Date::setHour()
Set the hour field of the date object
Date::setMinute()
Set the minute field of the date object
Date::setMonth()
Set the month field of the date object
Date::setSecond()
Set the second field of the date object
Date::setTZ()
Sets the time zone of this Date
Date::setTZbyID()
Sets the time zone of this date with the given time zone id
Date::setYear()
Set the year field of the date object
Date::subtractSeconds()
Subtracts a given number of seconds from the date
Date::subtractSpan()
Subtracts a time span to the date
Date::toUTC()
Converts this date to UTC and sets this date's timezone to UTC
Date::toUTCbyOffset()

Class Details

[line 25]
Generic date handling class for PEAR.

Generic date handling class for PEAR. Attempts to be time zone aware through the Date::TimeZone class. Supports several operations from Date::Calc on Date objects.



[ Top ]


Method Detail

myDate (Constructor)   [line 26]

myDate myDate( mixed $date)


[ Top ]


Documentation generated on Sat, 1 May 2004 01:25:54 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.