dmDateTime Class Reference

Public Member Functions


Detailed Description

Definition at line 28 of file dmDateTime.class.php.


Constructor & Destructor Documentation

dmDateTime::__construct ( datetime_str = null  ) 
Parameters:
string datetime_str A date/time string recognizable by strtotime()
Since:
0.1

Definition at line 38 of file dmDateTime.class.php.

Referenced by __wakeup().


Member Function Documentation

dmDateTime::__sleep (  )  [final]

This method works around the fact that built-in PHP objects cannot be serialized.

See also:
dmDateTime::__wakeup()
Since:
0.1

Definition at line 60 of file dmDateTime.class.php.

dmDateTime::__toString (  ) 

Returns a human-readable date/time.

The format may change and should not be depended on.

Returns:
string
See also:
dmDateTime::format()
Since:
0.1

Definition at line 50 of file dmDateTime.class.php.

dmDateTime::__wakeup (  )  [final]

This method works around the fact that built-in PHP objects cannot be serialized.

See also:
dmDateTime::__sleep()
Since:
0.1

Definition at line 71 of file dmDateTime.class.php.

dmDateTime::asISO8601 (  )  [final]
Returns:
ISO8601-formatted date string
Since:
0.1

Definition at line 79 of file dmDateTime.class.php.

dmDateTime::asMySQLDateTime (  )  [final]
Returns:
String compatible with a MySQL DATETIME field
Since:
0.1

Definition at line 87 of file dmDateTime.class.php.

dmDateTime::asRFC3339 (  )  [final]

RFC3339 dates are used by Atom feeds, among other potential other uses.

Returns:
string
Since:
0.1

Definition at line 107 of file dmDateTime.class.php.

dmDateTime::asRFC822 (  )  [final]

RFC822 dates are used by RSS feeds, among other potential other uses.

Returns:
string
Since:
0.1

Definition at line 97 of file dmDateTime.class.php.

dmDateTime::asUnixTimestamp (  )  [final]
Returns:
string
Since:
0.1

Definition at line 121 of file dmDateTime.class.php.


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

Generated on Fri Aug 20 13:16:50 2010 for dmBridge PHP API by  doxygen 1.6.1