回文日期串C语言,什么是回文日期?

What are palindrome dates?

什么是回文日期?

You've likely heard that palindrome sentence that is spelled the same way forwards and backwards. But palindrome dates seem to spark a lot of curiosity and discussion.

你可能听说过回文句子,前后拼写相同。但是回文日期似乎引发了很多好奇和讨论。

04ec6621705da39c880b19de9ff51a97.png

Palindrome dates only occur in the early centuries of a millennium. (Photo: Vintage Vectors Studio/Shutterstock)

Palindrome dates, by their very nature, only occur in the early centuries of a millennium. There will be 36 of them during this millennium — the last one will be on Sept. 22, 2290. The next one after that won't be until Oct. 3, 3001.

回文日期,就其本质而言,只发生在一个世纪的早期。在这个千禧年里,将会有36个,最后一个是在2290年9月22日。在那之后的下一次将会在3001年10月3日。

In 2019, for example, every day for 10 consecutive days starting Sept. 10 is a palindrome in the m-dd-yy format, which is common in the United States:

例如,在2019年,从9月10日开始连续10天的每一天都是m-dd-yy格式的回文,这在美国很常见:

9-10-19

9-11-19

9-12-19

9-13-19

9-14-19

9-15-19

9-16-19

9-17-19

9-18-19

9-19-19

Palindromic dates can be rare, depending on how a date is formatted.

回文日期可能很少,这取决于日期的格式。

Aziz S. Inan, an electrical engineering professor at the University of Portland, has calculated that when dates are written in the mm-dd-yyyy format, palindrome days typically occur only in the first few centuries of each millennium. The last palindromic date in the second millennium (1001 to 2000) in this format was Aug. 31, 1380 or 08-31-1380, according to timeanddate.com. The first one in the current millennium (Jan. 1, 2001 to Dec. 31, 3000) was Oct. 2, 2001 (10-02-2001) and the last one will be Sept. 22, 2290 (09-22-2290).

阿齐兹·s·伊南(Aziz S. Inan)是波特兰大学(University of Portland)的电气工程教授,他计算出,当日期以mm-dd-yyyy格式书写时,回文日通常只出现在每个千年的头几个世纪。据timeanddate.com称,第二个千禧年(1001年至2000年)最后一个回文日期是1380年8月31日或08-31-1380年。当前千禧年(2001年1月1日至3000年12月31日)的第一次是2001年10月2日(10-02-2001),最后一次是2290年9月22日(09-22-2290)。

For countries that use the dd-mm-yyyy format, there are 29 palindrome days in the current century. The first was 10 February 2001 (10-02-2001). The last will be a leap day: 29 February 2092 (29-02-2092), which will also be the last palindrome day of the 21st century.

对于使用dd-mm-yyyy格式的国家,本世纪有29个回文日。第一次是2001年2月10日(10-02-2001)。最后一个将是闰日:2092年2月29日(29-02-2092),这也是21世纪最后一个回文日。

Palindrome weeks

回文周

Although it might seem like strings of palindrome dates — or palindrome weeks — might be rare, Inan says that's hardly the case.

虽然这看起来像是一连串的回文日期——或者回文周——可能很少见,但伊南说情况并非如此。

Since 2011, every year has had 10 consecutive palindrome days. In 2011, they started on Jan. 10 (1-10-11 through 1-19-11), for example, and in 2012, another string started on Feb. 10 (2-10-12 through 2-19-12). In 2017, it happened in July, while in 2018, it happened in August.

自2011年以来,每年都有连续10个回文日。例如,2011年1月10日开始(1-10-11到1-19-11),2012年2月10日开始(2-10-12到2-19-12)。2017年发生在7月,而2018年发生在8月。

In the m-dd-yy format, every century has nine years with 10 consecutive palindrome days. Timeanddate.com points out that they're always in the second decade of the century. Every year between 2011-2019, 2111-2119, and 2211-2219 will have 10 palindrome days in a row.

在m-dd-yy格式中,每个世纪有9年,连续10个回文日。Timeanddate.com指出,它们总是在本世纪的第二个十年。2011-2019年,2111-2119年和2211-2219年将会有连续10个回文日。

But palindrome dates aren't the only way that calendar number geeks — I mean enthusiasts — get their thrills.

但是回文日期并不是日历数字极客(我是说发烧友)获得兴奋的唯一方式。

Among other patterns, there are repeating dates (1/11/11 = 11111), repeating sequences (10/31/03 = 103 103), and sequential dates (8/9/10 = 8,9,10; and if you start with the time of 12:34:56.7, you get 1, 2, 3, 4, 5, 6, 7, 8, 9, 10).

在其他模式中,有重复日期(1/11/11 = 11111)、重复序列(10/31/03 = 103 103)和顺序日期(8/9/10 = 8,9,10;如果从12:34:56.7开始,得到12 34 56 7 8 9 10)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值