\DateTimeInterface

Synopsis

interface DateTimeInterface {
}

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