久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

UTC 是否遵守夏令時?

Does UTC observe daylight saving time?(UTC 是否遵守夏令時?)
本文介紹了UTC 是否遵守夏令時?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我正在嘗試編寫一個腳本,我想將任何時區轉換為 UTC 并反轉.但是從某些方面我開始知道,在考慮或不考慮 DST 的情況下將任何時區轉換為 UTC 時,它會給出相同的 UTC 時間.例如:如果我嘗試轉換這個:

I am trying to write a script where i want to convert any timezone to UTC and reverse. But from some where i came to know that while converting any timezone to UTC with or without DST consideration it will give the same UTC time. For example: If i try to convert this one:

$mytime = '2011-03-31 05:06:00.000';
$myzone = 'America/New_York';

使用 DST 和不使用 DST 到 UTC,我會得到 ..

to UTC with DST and without DST,i will get ..

(New_York->UTC DST=Yes)2011-03-31 09:06:00
(New_York->UTC DST=No)2011-03-31 09:06:00 ..........

這是正確的嗎??如果是,那為什么???請任何人給我你的答案.

Is this corect ??If yes then why??? Please anybody give me your answers.

推薦答案

不,UTC 本身從來沒有 DST.它是其他時區相對于表示的恒定參考系.

No, UTC itself never has DST. It is the constant frame of reference other time zones are expressed relative to.

來自維基百科UTC頁面:

UTC 不會隨著季節的變化而變化,但如果時區管轄區遵守夏令時或夏令時,當地時間或民用時間可能會發生變化.例如,UTC 在美國東海岸冬季比當地時間早 5 小時,而在夏季則比當地時間早 4 小時.

UTC does not change with a change of seasons, but local time or civil time may change if a time zone jurisdiction observes daylight saving time or summer time. For example, UTC is 5 hours ahead of local time on the east coast of the United States during winter, but 4 hours ahead during summer.

換句話說,當一個時區觀察 DST 時,它與 UTC 的偏移量會在 DST 轉換時發生變化,但那是那個時區觀察 DST,而不是 UTC.

In other words, when a time zone observes DST, its offset from UTC changes when there's a DST transition, but that's that time zone observing DST, not UTC.

在對 PHP 時區處理知之甚少的情況下,您可以在轉換中指定帶 DST"或不帶 DST"對我來說似乎很奇怪 - 時區本身指定 DST 何時開始......它不應該必須是你自己指定的東西.

Without knowing much about PHP time zone handling, it seems strange to me that you can specify "with DST" or "without DST" in a conversion - the time zones themselves specify when DST kicks in... it shouldn't have to be something you specify yourself.

這篇關于UTC 是否遵守夏令時?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Add programmatically a downloadable file to Woocommerce products(以編程方式將可下載文件添加到 Woocommerce 產品)
Get today#39;s total orders count for each product in Woocommerce(獲取今天 Woocommerce 中每種產品的總訂單數)
Add Custom registration fields in WooCommerce and phone field validation issue(在 WooCommerce 和電話字段驗證問題中添加自定義注冊字段)
Add a select field that will change price in Woocommerce simple products(在 Woocommerce 簡單產品中添加一個將更改價格的選擇字段)
Add custom columns to admin products list in WooCommerce 3(在 WooCommerce 3 中將自定義列添加到管理產品列表)
Customizing checkout quot;Place Orderquot; button output html(自定義結帳“下訂單按鈕輸出html)
主站蜘蛛池模板: 欧美综合一区二区三区 | 黄色在线播放视频 | 久青草影院 | 黄色视频a级毛片 | 中文欧美日韩 | 国产xxxx岁13xxxxhd | 日本视频在线播放 | 韩国毛片视频 | 精品国产一区二区三区成人影院 | 在线一区 | 一级黄色在线 | 99久久精品国产毛片 | 精品国产乱码久久久久久丨区2区 | 99精品久久久久久 | 亚洲视频一区二区三区四区 | 欧美日本免费 | 欧美午夜一区 | 日本不卡一区二区 | 免费观看一级特黄欧美大片 | 天天夜碰日日摸日日澡 | 国产精品视频yy9299一区 | 91视频进入| 99色播 | 18性欧美| av黄色国产 | 日韩国产精品一区二区三区 | 国产一级片av | 在线精品一区二区三区 | 欧洲一区二区在线 | 成人精品一区二区三区 | 一区二区亚洲 | 精品久久久久久久久久久久久 | 国内自拍偷拍一区 | 黄色免费网站在线看 | 91传媒在线观看 | 亚洲免费视频在线观看 | www.国产.com | 久久久www | 国产精品电影在线观看 | 中文字幕在线网 | 91天堂网|