2016-10-13 00:16:48 点击量:26 标签: 收藏本文
echo date("Y-m-d H:i:s",strtotime("-1 day"));
例子
<?php
echo(strtotime("now"));
echo(strtotime("3 October 2005"));
echo(strtotime("+5 hours"));
echo(strtotime("+1 week"));
echo(strtotime("+1 week 3 days 7 hours 5 seconds"));
echo(strtotime("next Monday"));
echo(strtotime("last Sunday"));
?>输出:
1138614504
1128290400
1138632504
1139219304
1139503709
1139180400
1138489200
$time=time();
//一天的开始
$start=strtotime(date('Y-m-d',$time).("-8 hours").'00:00:01');
echo date('Y-m-d H:i:s',$start);
//一天的结束
$end=strtotime(date('Y-m-d',$time).("-8 hours").'23:59:59');
echo date('Y-m-d H:i:s',$end);
$collection_of_products = Core::getModel('checkout/salesordergift')->getCollection()
->addFieldToSelect('gift_type')
->addFieldToSelect('created_at')
->addFieldToFilter('gift_type','bag')
->addFieldToFilter('created_at',array('from'=>$day_start,'to'=>$day_end));
我们是一家提供综合软件外包与弱电工程服务的技术公司。
业务涵盖定制软件、管理系统、网站、小程序、APP、系统集成、网络布线、监控安防、门禁、机房建设及长期技术维护。
公司地址:湖北省宜昌市伍家岗区东站二路6号三峡(宜昌)大数据产业园海洋馆二楼A203室