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.


Top ↑

Return Return

(int) The Unix timestamp of the given date.


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.31.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.