PHP Classes & Interfaces


Name: DateTime

Date: Jul-24-2017
PHP version: 5.3.3
Type: Internal

class DateTime

Public Methods

public __construct ( $time, $object )

public __wakeup ( )

public static __set_state ( )

public static createFromFormat ( $format, $time, $object )

public static getLastErrors ( )

public format ( $format )

public modify ( $modify )

public add ( $interval )

public sub ( $interval )

public getTimezone ( )

public setTimezone ( $timezone )

public getOffset ( )

public setTime ( $hour, $minute, $second )

public setDate ( $year, $month, $day )

public setISODate ( $year, $week, $day )

public setTimestamp ( $unixtimestamp )

public getTimestamp ( )

public diff ( $object, $absolute )

Constants

const ATOM = Y-m-d\TH:i:sP

const COOKIE = l, d-M-y H:i:s T

const ISO8601 = Y-m-d\TH:i:sO

const RFC822 = D, d M y H:i:s O

const RFC850 = l, d-M-y H:i:s T

const RFC1036 = D, d M y H:i:s O

const RFC1123 = D, d M Y H:i:s O

const RFC2822 = D, d M Y H:i:s O

const RFC3339 = Y-m-d\TH:i:sP

const RSS = D, d M Y H:i:s O

const W3C = Y-m-d\TH:i:sP