This class is used to represent a date.
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.
__construct($year, $month=1, $day=1, $hour=0, $minute=0, $second=0) ¶Constructs a new AnewtDateTimeAtom object.
$yearYear.
$monthMonth (optional, defaults to 1).
$dayDay (optional, defaults to 1).
$hourHours (optional, defaults to 0).
$minuteMinutes (optional, defaults to 0).
$secondSeconds (optional, defaults to 0).
timestamp() ¶Returns a timestamp for this AnewtDateTimeAtom object.
Timestamps are very useful when formatting dates using strftime() or date().
An integer representing this AnewtDateTimeAtom instance.
render() ¶Renders this object to a string.
This method makes AnewtDateTimeAtom conform to the "renderable" interface.
A formatted string.