Tribe__Date_Utils::hour_only( string $date )

Returns the hour only.


Parameters

$date

(string) (Required) The date.


Top ↑

Return

(string) The hour only.


Top ↑

Source

File: src/Tribe/Date_Utils.php

		public static function hour_only( $date ) {
			$date = is_numeric( $date ) ? $date : strtotime( $date );
			return date( self::HOURFORMAT, $date );
		}