WC_DateTime::getOffsetTimestamp
Get the timestamp with the WordPress timezone offset added or subtracted.
Method of the class: WC_DateTime{}
No Hooks.
Returns
Int.
Usage
$WC_DateTime = new WC_DateTime(); $WC_DateTime->getOffsetTimestamp();
Changelog
| Since 3.0.0 | Introduced. |
WC_DateTime::getOffsetTimestamp() WC DateTime::getOffsetTimestamp code WC 10.5.0
public function getOffsetTimestamp() {
return $this->getTimestamp() + $this->getOffset();
}