ap_get_current_timestamp()

Description #

Return current timestamp.

Changelog #

VersionDescription
4.2.0Introduced.

Source #

File: includes/functions.php

function ap_get_current_timestamp() {
	$local_time = current_datetime();

	return $local_time->getTimestamp() + $local_time->getOffset();
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment