Inventory_Presser_Business_Day::time_string( int $hour, int $minute )

time_string


Description Description

If the business is open at all on this day, what is that opening time in a human-friendly format?


Top ↑

Parameters Parameters

$hour

(int) (Required)

$minute

(int) (Required)


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-business-day.php

	function time_string( $hour, $minute )
	{
		if( ! $this->open_in_some_fashion() ) { return ''; }

		//9:30:00
		$time_string = (string)( $hour ) . ':' . (string)( $minute ) .':00';
		return ( date( 'g:i a', strtotime( $time_string ) ) );
	}