LLMS_Abstract_Post_Data::strtotime( mixed $date )
Allow dates and timestamps to be passed into various data functions.
Parameters Parameters
- $date
-
(mixed) (Required) A date string or timestamp.
Return Return
(int) The Unix timestamp of the given date.
Source Source
File: includes/abstracts/llms.abstract.post.data.php
protected function strtotime( $date ) { if ( ! is_numeric( $date ) ) { $date = date( 'U', strtotime( $date ) ); } return $date; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.31.0 | Introduced. |