久久久久久久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)
主站蜘蛛池模板: 中文字幕免费在线观看 | 瑟瑟免费视频 | 9191成人精品久久 | 国产精品免费一区二区三区四区 | 欧美成视频在线观看 | 成人欧美一区二区三区黑人孕妇 | 精品一区二区三区入口 | 日韩精品免费一区二区在线观看 | av黄色在线观看 | 又爽又黄axxx片免费观看 | 人人干人人玩 | 久久综合九色综合欧美狠狠 | 雨宫琴音一区二区在线 | 在线观看亚洲精品 | 成人黄视频在线观看 | 日日操夜夜操天天操 | 国产一区二区三区四区三区四 | 日韩精品免费 | re久久 | 日韩精品一区二区三区在线观看 | 亚洲精品v日韩精品 | 日韩视频高清 | 女同久久 | 国产在线观看一区二区三区 | 欧美日韩国产高清 | 亚洲精品免费在线 | 久久精品久久久久久 | 欧美一级久久 | 国产综合区 | 日韩在线中文字幕 | 国产精品爱久久久久久久 | 人人干人人舔 | 国产91亚洲精品 | 日本人和亚洲人zjzjhd | 国产成人精品免高潮在线观看 | 在线色网址 | 国产高清性xxxxxxxx | 国产乱码精品一区二区三区五月婷 | 日本午夜精品 | 国产高清在线精品 | 一区二区三区国产好 |