<bdo id='fs9ie'></bdo><ul id='fs9ie'></ul>

  • <small id='fs9ie'></small><noframes id='fs9ie'>

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

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

      1. 为什么时间戳限制为 2038?

        Why do timestamps have a limit to 2038?(为什么时间戳限制为 2038?)

        <small id='Kifa3'></small><noframes id='Kifa3'>

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

            <tbody id='Kifa3'></tbody>
          <tfoot id='Kifa3'></tfoot>

              <legend id='Kifa3'><style id='Kifa3'><dir id='Kifa3'><q id='Kifa3'></q></dir></style></legend>
              • <bdo id='Kifa3'></bdo><ul id='Kifa3'></ul>
                1. 本文介绍了为什么时间戳限制为 2038?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我刚刚在运行日历脚本时发现,PHP 中的时间戳限制为 2038.这到底是什么意思?为什么是 2038 而不是 2050 或 2039?如果时间戳只计算给定日期(1970 年)的秒数,为什么要限制?

                  I just found out, running a calendar script, that timestamps in PHP has a limit to 2038. What does it really mean? Why is it 2038 instead of 2050 or 2039? Why a limit if timestamps just count seconds from a given date (1970)?

                  推荐答案

                  限制是由大多数 C 库用于表示该计数的 4 字节有符号整数强加的.快速数学(假设 365 天年,不完全正确):

                  The limit is imposed by the 4 byte signed integers that most C libraries use for representing that count. Quick math (assumes 365 day years, not exactly correct):

                  2147483648 seconds ~ 68.1 years
                  

                  这也意味着下限约为 1900.一些库已经开始引入 64 位 epoch 计数,但目前还很少.

                  This also implies a lower limit of ~1900. Some libraries have started to introduce 64 bit epoch counts, but they are few and far between for the moment.

                  这篇关于为什么时间戳限制为 2038?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <tfoot id='gYTMI'></tfoot>
                  • <bdo id='gYTMI'></bdo><ul id='gYTMI'></ul>
                    1. <small id='gYTMI'></small><noframes id='gYTMI'>

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

                              <tbody id='gYTMI'></tbody>

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