WC_DateTime::getTimestamp()
Missing in PHP 5.2 so just here so it can be supported consistently.
Description Description
Return Return
(int)
Source Source
File: includes/class-wc-datetime.php
public function getTimestamp() {
return method_exists( 'DateTime', 'getTimestamp' ) ? parent::getTimestamp() : $this->format( 'U' );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |