不是编程问题 - 但仅适用于开发人员......
当说“明天做点什么”时
明天总是今天的日期 + 1 并且全世界的日期都相同吗?
只有谈话日期 - 没有时间。
闰年?新年?
不是编程问题 - 但仅适用于开发人员......
当说“明天做点什么”时
明天总是今天的日期 + 1 并且全世界的日期都相同吗?
只有谈话日期 - 没有时间。
闰年?新年?
Consider this real world example of Western-Samoa in 2011. They switched their timezone that way that they crossed the international dateline border from east to west. The consequence was: The day 2011-12-29 was followed by 2011-12-31, leaving out the date 2011-12-30.
So we have an example that the term "tomorrow" in the astronomical sense of next solar day does not necessarily mean the next calendar date. And we can further see that dates are timezone-dependent and therefore not the same around our globe. Instead we have two lines on the globe where the date changes, namely the mignight line AND the international dateline border. It is therefore daily reality that we have different calendar dates around the globe (for example Australia in the morning is one day later in calendar than Europe in the evening at the same time).
About your remark regarding leap years or new year, that is another subject unrelated to the question if and when a calendar date changes locally or globally.
要回答“全世界的 [a] 日期是否相同? ”的(旧)问题,并忽略日期的格式(DDMMYYYY vs. MMDDYYYY vs. YYYYMMDD 等),我的回答分为两部分。没有明显的原因,我把它写成叙述:
1. 不同时区的日期
到这个时候,我的手机说现在是 2015 年第四个月的第五天。我在英国,目前正在观察英国夏令时。在我写这篇文章的时候,现在是英国夏令时 01:35。在目前正在观察东部夏令时间的纽约,我的(虚构的)同卵双胞胎正在写与我相同的答案,但指的是前一天(即第四个月的第四天)的美国东部时间20:35。
但是后来,问题说“只谈论日期 - 没有时间。 ”......
2. 由于日历不同而导致的日期
写完这个答案后,我可能会去泰国旅行。假设我希望我住的酒店在我的房间里准备一碗红色的 M&M 巧克力豆,以备我到达那里时使用(这是我的习惯)。我要求我的(虚构的)PA 向酒店发送电子邮件以提出此请求。
当我到达酒店时,已经是第四个月的第六天(印度支那时间,泰国目前正在观察)。我的 PA 在电子邮件中将我的到达日期设为 06/04/2015(尽管采用ISO 8601,泰国仍使用 DDMMYYYY 格式)。
然而,泰国的官方日历是泰国阳历,比我们西方世界习惯的公历提前543年。在泰国阳历中,我将在 2558 年(=2015 + 543)到达。这不会有好的结局。
收到电子邮件的酒店接待员一生都在泰国生活,除了泰国阳历之外,不知道其他日历。因此,为一位原定于 543 年前到达的顾客提出关于红色 M&M 巧克力豆的要求是荒谬的。就像我们在 1476 (=2015 - 543) 的垃圾邮件罐上看到使用日期一样可笑。这个请求被忽略了,我到达了酒店,被迫像某种动物一样挑选红色的 M&M。
这一切都是因为假设世界各地的日期都是一样的……