php 时间戳函数
来源:互联网 发布:网页设计 软件 编辑:程序博客网 时间:2024/05/21 08:50
1.mktime
mktime ($hour = null, $minute = null, $second = null, $month = null, $day = null, $year = null, $is_dst = null)
小时,分钟,秒数,月,日,年 mktime('17','23','35');
2.strtotime
strtotime(time,now)
<?phpecho(strtotime("now")); 现在的时间echo(strtotime("3 October 2005")); 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")); 上周日?>
输出:
1138614504112829040011386325041139219304113950370911391804001138489200
0 0
- php时间戳函数
- php 时间戳函数
- PHP时间戳函数
- PHP 时间戳及时间函数
- PHP系统文件时间戳函数
- PHP时间戳函数总结一览
- PHP时间戳函数总结一览
- PHP时间戳函数总结一览
- php 时间戳函数总结一览
- PHP时间戳函数总结一览
- PHP时间戳函数总结一览
- PHP时间戳函数总结一览
- PHP时间戳函数和日期转换
- PHP 时间函数
- PHP中的时间函数
- php时间函数
- php中的时间函数
- PHP时间函数
- http code
- tomcat文件夹与文件解析
- 浅谈iOS讲义第四章《C语言特性》
- 怎样将java代码到linux上执行?
- android:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/k
- php 时间戳函数
- 从CERT.RSA中提取证书
- hadoop MapReduce实例解析
- OpenCV 2.4.8 +VS2010的开发环境配置
- iOS开发者必备:九大设计类工具
- Java基础——多态(概念+应用+多态中成员特点+多态案例)
- Java开发环境搭建
- 学习ASP.NET MVC5框架揭秘笔记-View和Presenter交互的规则(针对SC模式)
- 第九周项目1 复数类中的运算符重载续