duankuixi1930 2010-12-26 15:03
浏览 57

更改由date(“U”)给出的值而不更改服务器时间

ive been using date("U") allover my script when suddenly i found that i need to add timezone option in the website , which means all date("U") should look like date("U") + $someTime , is there any way i could change the time that the option date("U") displays without the need to modify the date("U")'s in the script and without modifying the server time ?

something like setting the date read by the 'date' function + or - some hours ???

  • 写回答

1条回答 默认 最新

  • dongtun2459 2010-12-26 15:10
    关注

    date("U") gives you the seconds since the Unix Epoch which is in GMT. How is the timezone relevant here?

    评论

报告相同问题?

悬赏问题

  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序