Class DateTime
-
DateTime
implements
DateTimeInterface
Methods summary
-
public
__construct ( mixed $time, mixed $object )
-
public
__wakeup ( )
-
public static
__set_state ( )
-
public static
createFromFormat ( mixed $format, mixed $time, mixed $object )
-
public static
getLastErrors ( )
-
public
format ( mixed $format )
-
public
modify ( mixed $modify )
-
public
add ( mixed $interval )
-
public
sub ( mixed $interval )
-
public
getTimezone ( )
-
public
setTimezone ( mixed $timezone )
-
public
getOffset ( )
-
public
setTime ( mixed $hour, mixed $minute, mixed $second )
-
public
setDate ( mixed $year, mixed $month, mixed $day )
-
public
setISODate ( mixed $year, mixed $week, mixed $day )
-
public
setTimestamp ( mixed $unixtimestamp )
-
public
getTimestamp ( )
-
public
diff ( mixed $object, mixed $absolute )
Methods detail
#
public
setTime( mixed $hour, mixed $minute, mixed $second )
#
public
setDate( mixed $year, mixed $month, mixed $day )
#
public
setISODate( mixed $year, mixed $week, mixed $day )
#
public
diff( mixed $object, mixed $absolute )
Magic methods summary
Constants summary
string |
ATOM
|
'Y-m-d\\TH:i:sP' |
|
string |
COOKIE
|
'l, d-M-Y H:i:s T' |
|
string |
ISO8601
|
'Y-m-d\\TH:i:sO' |
|
string |
RFC822
|
'D, d M y H:i:s O' |
|
string |
RFC850
|
'l, d-M-y H:i:s T' |
|
string |
RFC1036
|
'D, d M y H:i:s O' |
|
string |
RFC1123
|
'D, d M Y H:i:s O' |
|
string |
RFC2822
|
'D, d M Y H:i:s O' |
|
string |
RFC3339
|
'Y-m-d\\TH:i:sP' |
|
string |
W3C
|
'Y-m-d\\TH:i:sP' |
|