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 时间?

      Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)

    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 时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                datetime to timestamp(日期时间到时间戳)
                PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)
                Difference between 2 time() values(2 time() 值之间的差异)
                • <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>
                      <tbody id='C5dOG'></tbody>

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