LLMS_Coupon::get_expiration_time()
Retrieve the timestamp of a coupon expiration date Transforms the expiration date to a timestamp and adds 23 hours 59 minutes and 59 seconds to the date Coupons expire end of day on the expiration date (EG: 2015-12-01 @ 23:59:59)
Return Return
(false|int)
Source Source
File: includes/models/model.llms.coupon.php
public function get_expiration_time() { $expires = $this->get_date( 'expiration_date', 'U' ); if ( ! $expires ) { return false; } return ( (int) $expires + DAY_IN_SECONDS - 1 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.19.0 | Introduced. |