Class WC_DateTime
WC Wrapper for PHP DateTime which adds support for gmt/utc offset when a timezone is absent.
- DateTime implements DateTimeInterface
-
WC_DateTime
Package: WooCommerce\Classes
Category: Class
Author: WooThemes
Since: 3.0.0
Class: WC_DateTime
Located at class-wc-datetime.php
Category: Class
Author: WooThemes
Since: 3.0.0
Class: WC_DateTime
Located at class-wc-datetime.php
Methods summary
public
string
|
|
public
|
|
public
|
|
public
DateTime
|
|
public
integer
|
|
public
integer
|
|
public
string
|
|
public
string
|
Methods inherited from DateTime
__construct()
,
__set_state()
,
__wakeup()
,
add()
,
createFromFormat()
,
diff()
,
format()
,
getLastErrors()
,
getTimezone()
,
modify()
,
setDate()
,
setISODate()
,
setTime()
,
setTimestamp()
,
sub()
Constants summary
Constants inherited from DateTime
ATOM
,
COOKIE
,
ISO8601
,
RFC1036
,
RFC1123
,
RFC2822
,
RFC3339
,
RFC3339_EXTENDED
,
RFC7231
,
RFC822
,
RFC850
,
RSS
,
W3C
Properties summary
protected
integer
|
$utc_offset
UTC Offset, if needed. Only used when a timezone is not set. When timezones are used this will equal 0. |
#
0
|