我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

strtotime返回错误的号码? [重复]

This question already has an answer here:

  • Strange behavior of PHP time math: Why is strtotime() returning negative numbers? 5 answers

When I run this:

echo strtotime("January 1, 1970 00:16:00");

I get this:

-2640

How is this possible? I dont want a negative number, I want a positive number. What am I doing wrong?

</div>

Your timezone is set to GMT. Timestamps are in UTC, which is currently one hour behind GMT.

近期文章

  • 如何使用jquery mobile将页面幻灯片添加到动态创建的列表中?
  • mySQLi查询产生空值,尽管查询在函数之外工作
  • 在下一页获取POST mysql数据
  • 用户列表有限制
  • PHP:对表单使用require_once()?
  • PHP获取多维数组中的值的等级
  • 扩展控制器 - 但如何激活它? (Symfony 2)
  • jquery .submit()在setTimeout中不会向php传递数据
  • PHP如何修复这个奇怪的UNDEFINED OFFSET错误?
  • 使用onClick函数更新数据库信息
  • 将类属性返回为JSON
  • 用PHP翻译大型网站[关闭]
  • 使用PHP cURL发布数据
  • Laravel 3 - RESTful API
  • 检查外部网站的登录
  • 否则如果 - 我做错了什么?
  • 选择最新版本的课程
  • mac osx上的PHP Fast CGI - php fcgi.plist不是由加载运行,也不是由reboot重启
  • 在PHP / MYSQL中获取多行
  • Android中的JSON / PHP数据限制

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华