src/Utility/Time.php
public static function dayAsSql($dateString, $fieldName, $timezone = null) {
		return static::daysAsSql($dateString, $dateString, $fieldName, $timezone);
	}
public static function dayAsSql($dateString, $fieldName, $timezone = null) {
		return static::daysAsSql($dateString, $dateString, $fieldName, $timezone);
	}
public static function dayAsSql ( $ dateString , $ fieldName , $ timezone = null ) { return static :: daysAsSql ( $ dateString , $ dateString , $ fieldName , $ timezone ) ; }
Returns a partial SQL string to search for all records between two times
occurring on the same day.

@param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
@param string $fieldName Name of database field to compare with
@param string|\DateTimeZone|null $timezone Timezone string or DateTimeZone object
@return string Partial SQL string.
Returns a partial SQL string to search for all records between two times occurring on the same day .