<?php
namespace Biz\Datetime;
/**
 * basetime
 */
class DateHours extends BaseTime {
	/**
	 * 时间信息获取
	 * @var string
	 */
	public function parseTime($params){
		$res = $this->GetHoursDate($params[0]);
		return $res;
	}

    //获取指定日期起始时间:指定日期
    public function GetHoursDate($date){
        $date = empty($date)?time():strtotime($date);
        $res['start'] = date('Y-m-d H:00:00',$date);
        $res['end'] = date('Y-m-d H:59:59',$date);
        
        return $res;
    }

}