本文整理匯總了PHP中date::set_minute方法的典型用法代碼示例。如果您正苦於以下問題:PHP date::set_minute方法的具體用法?PHP date::set_minute怎麽用?PHP date::set_minute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類date
的用法示例。
在下文中一共展示了date::set_minute方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: instance
function _set_period_filter()
{
$locale =& locale :: instance();
$start_date = new date();
$start_date->set_hour(0);
$start_date->set_minute(0);
$start_date->set_second(0);
if (isset($_REQUEST['stats_start_date']))
{
$start_date->set_by_string($_REQUEST['stats_start_date'], $locale->get_short_date_time_format());
}
$finish_date = new date();
if (isset($_REQUEST['stats_finish_date']))
{
$finish_date->set_by_string($_REQUEST['stats_finish_date'], $locale->get_short_date_time_format());
}
$finish_date->set_hour(23);
$finish_date->set_minute(59);
$finish_date->set_second(59);
$this->stats_report->set_period_filter($start_date, $finish_date);
}
示例2: date
function _set_period_filter(&$request)
{
$locale =& locale::instance();
$start_date = new date();
$start_date->set_hour(0);
$start_date->set_minute(0);
$start_date->set_second(0);
if ($stats_start_date = $request->get_attribute('stats_start_date')) {
$start_date->set_by_string($stats_start_date, $locale->get_short_date_time_format());
}
$finish_date = new date();
if ($stats_finish_date = $request->get_attribute('stats_finish_date')) {
$finish_date->set_by_string($stats_finish_date, $locale->get_short_date_time_format());
}
$finish_date->set_hour(23);
$finish_date->set_minute(59);
$finish_date->set_second(59);
$this->stats_report->set_period_filter($start_date, $finish_date);
}
示例3: date
function _create_finish_date($time_string = '')
{
$finish_date = new date();
if ($time_string) {
$finish_date->set_by_string($time_string, $this->locale->get_short_date_time_format());
}
$finish_date->set_hour(23);
$finish_date->set_minute(59);
$finish_date->set_second(59);
return $finish_date;
}