Date_Based::get_end_time()

Unix time for notice end.


Return

(TribeUtilsDate_I18n) - Date Object


Top ↑

Source

File: src/Tribe/Admin/Notice/Date_Based.php

	public function get_end_time() {
		$date = Dates::build_date_object( $this->end_date, 'UTC' );
		$date = $date->setTime( $this->end_time, 0 );

		/**
		* Allow filtering of the end date DateTime object,
		* to allow for things like "the day after" ( $date->modify( '+1 day' ) ) and such.
		*
		* @since 4.14.2
		*
		* @param \DateTime $date Date object for the notice end.
		*/
		$date = apply_filters( "tribe_{$this->slug}_notice_end_date", $date, $this );

		return $date;
	}

Top ↑

Changelog

Changelog
Version Description
4.14.2 Introduced.