AnewtDateTimeAtom Class Reference

This class is used to represent a date. More...

List of all members.

Public Member Functions

 __construct ($year, $month=1, $day=1, $hour=0, $minute=0, $second=0)
 Constructs a new AnewtDateTimeAtom object.
 timestamp ()
 Returns a timestamp for this AnewtDateTimeAtom object.
 render ()
 Renders this object to a string.

Public Attributes

 $year
 Year.
 $month
 Month.
 $day
 Day.
 $hour
 Hours.
 $minute
 Minutes.
 $second
 Seconds.


Detailed Description

This class is used to represent a date.

Don't use this class directly, it's mainly for internal usage. Use AnewtDateTime's parse functions to create AnewtDateTimeAtom objects.

Definition at line 54 of file datetime.lib.php.


Constructor & Destructor Documentation

AnewtDateTimeAtom::__construct ( year,
month = 1,
day = 1,
hour = 0,
minute = 0,
second = 0 
)

Constructs a new AnewtDateTimeAtom object.

Parameters:
$year Year.
$month Month (optional, defaults to 1).
$day Day (optional, defaults to 1).
$hour Hours (optional, defaults to 0).
$minute Minutes (optional, defaults to 0).
$second Seconds (optional, defaults to 0).

Definition at line 79 of file datetime.lib.php.


Member Function Documentation

AnewtDateTimeAtom::timestamp (  ) 

Returns a timestamp for this AnewtDateTimeAtom object.

Timestamps are very useful when formatting dates using strftime() or date().

Returns:
An integer representing this AnewtDateTimeAtom instance.

Definition at line 101 of file datetime.lib.php.

AnewtDateTimeAtom::render (  ) 

Renders this object to a string.

This method makes AnewtDateTimeAtom conform to the "renderable" interface.

Returns:
A formatted string.

Definition at line 115 of file datetime.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:37 2009 for Anewt by  doxygen 1.5.9