mktime()使用date()夏令时知道吗?

编程入门 行业动态 更新时间:2024-10-28 05:28:26
本文介绍了mktime()使用date()夏令时知道吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在s.o上已阅读了有关此问题的几个问题.而且似乎都没有人直率地问或回答这个问题:

I've read through a few questions about this here on s.o. and none seem to ask or answer the question very bluntly:

$ts_today = mktime( 0, 0, 0, date('m'), date('d'), date('Y') );

这个夏令时知道吗?

如果没有,我如何使mktime()意识到夏令时?

if not, how do i make mktime() daylight saving aware?

推荐答案

〜关于 the PHP网站本身,以及一些有用的示例.简而言之,较新版本的PHP将DST作为时区处理功能的一部分考虑在内

~There's plenty of discussion of this on the PHP site itself, and some useful examples. In short, newer versions of PHP take account of DST as part of the timezone handling functionality

更多推荐

mktime()使用date()夏令时知道吗?

本文发布于:2023-11-24 18:03:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1626274.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:夏令时   mktime   date

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!