\DateTimeInterface
Synopsis
interface DateTimeInterface
{
- // methods
- public DateInterval diff()
- public string format()
- public int getOffset()
- public int getTimestamp()
- public DateTimeZone getTimezone()
- public void __wakeup()
Methods
public
- __wakeup() — The __wakeup handler
- diff() — Returns the difference between two DateTime objects
- format() — Returns date formatted according to given format
- getOffset() — Returns the timezone offset
- getTimestamp() — Gets the Unix timestamp
- getTimezone() — Return time zone relative to given DateTime