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

如何将'Apr9,20037:33am'转换为unix时间戳?

I have a date in this format: Apr9,20037:33am

How do I turn into a timestamp?

strtotime() - Parse about any English textual datetime description into a Unix timestamp

$unix_timestamp = strtotime('Apr 9, 2002 11:33 am')

EDIT: Asker changed question, above no longer applies.

If you have a format that can't be parsed also take a look at: date_parse_from_format

近期文章

  • 如何使用输入表单更改PHP变量?
  • 响应文件管理器与codeigniter中的tinymce
  • 从数组转换为字符串,内爆不起作用
  • Laravel雄辩地对关系进行了复杂的查询2
  • bnpFromString js相当于php Math_BigInteger?
  • 对同一请求使用mysql GROUP BY和ORDER BY
  • SoundCloud Api - 如何制作(设置)播放列表收藏夹?
  • 强制特定查询结果到echo的底部
  • 如何在PHP 5中动态调用子类方法?
  • CI:将隐藏字段中的值保存到另一个表中
  • PHP:使用函数number_format的数字格式[关闭]
  • APNS Apple推送服务通知未收到
  • 购物车数组数据未使用表单数据处理
  • SoundCloud API:在限制后搜索更多结果
  • 需要在第二天显示(脚本显示当天)
  • 用于Morris图数据的jQuery post的setInterval
  • 为什么要同时使用laravel.log和tweets.log?
  • Php sql Left Join Tables表1中的Echo列
  • 带有ldap身份验证的PHP登录页面(用户组)
  • Openlayers v3.13.1,从PHP / Mysql构造图层

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华