标准时间和夏令时 [英] Standard Time and Daylight Time

查看:71
本文介绍了标准时间和夏令时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是一个真正的技术编程问题,但它与在 Java 中处理和显示时区有关.

This is not really a technical programming question, but it has to do with dealing with and displaying time zones in Java.

在美国,有Eastern TimePacific Time 等时区,在夏令时,它们是Eastern Daylight Time太平洋夏令时间,当夏令时不生效时,它们是东部标准时间太平洋标准时间.

In the United States, there are time zones like Eastern Time and Pacific Time, that during Daylight Savings, they are Eastern Daylight Time and Pacific Daylight Time, while when Daylight Savings is not in effect, they are Eastern Standard Time and Pacific Standard Time.

因此,由于夏令时从 3 月的第二个星期日开始,到 11 月的第一个星期日结束,因此 3 月和 11 月之间的日期是 东部标准时间太平洋标准时间无效?例如,以下日期在技术上不存在吗?

So, since Daylight Saving Time starts on the second Sunday of March, and ends on the first Sunday of November, would saying that a date between March and November is in Eastern Standard Time or Pacific Standard Time be invalid? For example, does the following date technically not exist?

2015 年 9 月 29 日,星期二,太平洋标准时间上午 10 点
Tuesday, September 29, 2015 at 10 am PST

不应该是Pacific Daylight Time (PDT),还是只是PT 以避免必须指定DaylightStandard?

Should it not be Pacific Daylight Time (PDT), or just simply PT to avoid having to specify Daylight or Standard?

推荐答案

...会说 3 月和 11 月之间的日期是东部标准时间还是太平洋标准时间是无效的吗?

... would saying that a date between March and November is in Eastern Standard Time or Pacific Standard Time be invalid?

如果您谈论的时区在那个特定时间没有观察到那个特定片段,那么是的 - 它是无效的.东部标准时间始终为 UTC-5,东部夏令时始终为 UTC-4.如果您说的是 UTC-4 时说的是 EST,那么您使用它是错误的.(而且人们确实经常错误地使用它.)

If you are talking about a time zone that doesn't observe that particular segment at that particular time, then yes - it's invalid. Eastern Standard Time is always UTC-5, and Eastern Daylight Time is always UTC-4. If you say EST when you mean UTC-4, you're using it wrong. (And people do indeed use it wrong quite often.)

然而,正如其他人指出的那样,许多时区中的某些地方不遵守夏令时,即使周围地区遵守夏令时也是如此.如果你说夏季 MST,它在凤凰城有效,但在洛杉矶无效.

However, as others pointed out, there are locations in many time zones that don't observe daylight saving time, even when the areas around them do. If you say MST in the summer, it's valid in Phoenix, but not in Los Angeles.

...或者只是简单的 PT 以避免必须指定 Daylight 或 Standard?

... or just simply PT to avoid having to specify Daylight or Standard?

是的,您可以只说PT 并省略SD.它经常在电视上以这种方式完成,但在计算机上并不常见.此外,这不适用于世界各地的时区(伦敦使用 GMT 和 BST - 那里没有通用的通用缩写).

Yes, you can just say PT and omit the S or the D. It's done often this way on television, but not as often with computers. Also, that doesn't hold true for time zones over the world (London uses GMT and BST - there is no common generic abbreviation there).

这篇关于标准时间和夏令时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆