1. <i id='VVRUT'><tr id='VVRUT'><dt id='VVRUT'><q id='VVRUT'><span id='VVRUT'><b id='VVRUT'><form id='VVRUT'><ins id='VVRUT'></ins><ul id='VVRUT'></ul><sub id='VVRUT'></sub></form><legend id='VVRUT'></legend><bdo id='VVRUT'><pre id='VVRUT'><center id='VVRUT'></center></pre></bdo></b><th id='VVRUT'></th></span></q></dt></tr></i><div id='VVRUT'><tfoot id='VVRUT'></tfoot><dl id='VVRUT'><fieldset id='VVRUT'></fieldset></dl></div>
      <bdo id='VVRUT'></bdo><ul id='VVRUT'></ul>

  2. <small id='VVRUT'></small><noframes id='VVRUT'>

    <tfoot id='VVRUT'></tfoot>

    <legend id='VVRUT'><style id='VVRUT'><dir id='VVRUT'><q id='VVRUT'></q></dir></style></legend>

    1. 在 PHP 中将 TIMESTAMP 转换为 unix 时间?

      时间:2024-04-13

    2. <small id='kaykA'></small><noframes id='kaykA'>

      1. <i id='kaykA'><tr id='kaykA'><dt id='kaykA'><q id='kaykA'><span id='kaykA'><b id='kaykA'><form id='kaykA'><ins id='kaykA'></ins><ul id='kaykA'></ul><sub id='kaykA'></sub></form><legend id='kaykA'></legend><bdo id='kaykA'><pre id='kaykA'><center id='kaykA'></center></pre></bdo></b><th id='kaykA'></th></span></q></dt></tr></i><div id='kaykA'><tfoot id='kaykA'></tfoot><dl id='kaykA'><fieldset id='kaykA'></fieldset></dl></div>
        • <legend id='kaykA'><style id='kaykA'><dir id='kaykA'><q id='kaykA'></q></dir></style></legend>

              <tbody id='kaykA'></tbody>
            • <bdo id='kaykA'></bdo><ul id='kaykA'></ul>
              1. <tfoot id='kaykA'></tfoot>

                本文介绍了在 PHP 中将 TIMESTAMP 转换为 unix 时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                目前我将时间存储在我的数据库中,如下所示:2010-05-17 19:13:37

                Currently I store the time in my database like so: 2010-05-17 19:13:37

                但是,我需要比较两次,我觉得如果是unix时间戳,例如1274119041,会更容易做.(这两次是不同的)

                However, I need to compare two times, and I feel it would be easier to do if it were a unix timestamp such as 1274119041. (These two times are different)

                那么如何将时间戳转换为 unix 时间戳?有没有简单的php函数呢?

                So how could I convert the timestamp to unix timestamp? Is there a simple php function for it?

                推荐答案

                您正在寻找 strtotime()

                这篇关于在 PHP 中将 TIMESTAMP 转换为 unix 时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:将 ISO 8601 转换为 unixtimestamp 下一篇:PHP时间戳日期到用户时区

                相关文章

                • <bdo id='C5dOG'></bdo><ul id='C5dOG'></ul>

                1. <small id='C5dOG'></small><noframes id='C5dOG'>

                  <i id='C5dOG'><tr id='C5dOG'><dt id='C5dOG'><q id='C5dOG'><span id='C5dOG'><b id='C5dOG'><form id='C5dOG'><ins id='C5dOG'></ins><ul id='C5dOG'></ul><sub id='C5dOG'></sub></form><legend id='C5dOG'></legend><bdo id='C5dOG'><pre id='C5dOG'><center id='C5dOG'></center></pre></bdo></b><th id='C5dOG'></th></span></q></dt></tr></i><div id='C5dOG'><tfoot id='C5dOG'></tfoot><dl id='C5dOG'><fieldset id='C5dOG'></fieldset></dl></div>

                  <tfoot id='C5dOG'></tfoot>
                    <legend id='C5dOG'><style id='C5dOG'><dir id='C5dOG'><q id='C5dOG'></q></dir></style></legend>