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. | |
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.
| AnewtDateTimeAtom::__construct | ( | $ | year, | |
| $ | month = 1, |
|||
| $ | day = 1, |
|||
| $ | hour = 0, |
|||
| $ | minute = 0, |
|||
| $ | second = 0 | |||
| ) |
Constructs a new AnewtDateTimeAtom object.
| $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.
| AnewtDateTimeAtom::timestamp | ( | ) |
Returns a timestamp for this AnewtDateTimeAtom object.
Timestamps are very useful when formatting dates using strftime() or date().
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.
Definition at line 115 of file datetime.lib.php.
1.5.9