摘要: 一,获取指定日期的unix时间戳strtotime("2009-1-22") 示例如下:1.echo strtotime("2009-1-22")结果:1232553600说明:返回2009年1月22日0点0分0秒时间戳二,获取英文文本日期时间示例如下:便于比较,使用date将当时间戳与指定时间戳转换成系统时间(1)打印明天此时的时间戳strtotime("+1 day")当前时间:1.echo date("Y-m-d H:i:s",time())结果:2009-01-22 09:40:25指定时间:1.echo 阅读全文
posted @ 2012-11-30 10:33 睡着的糖葫芦 阅读(233) 评论(0) 推荐(0) 编辑