ruby-changes:35097
From: akr <ko1@a...>
Date: Thu, 14 Aug 2014 22:10:18 +0900 (JST)
Subject: [ruby-changes:35097] akr:r47179 (trunk): Revert r46977. [Bug #10071]
akr 2014-08-14 22:10:07 +0900 (Thu, 14 Aug 2014) New Revision: 47179 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47179 Log: Revert r46977. [ruby-core:63857] [Bug #10071] The removed comment is useful to understand the behind idea to solve the year 2038 problem. The broken link is replaced to refer the internet archive. https://github.com/ruby/ruby/commit/0eed69757dd2bc0eb460a5dc38e377ac8e2cbfd9#commitcomment-7166665 Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 47178) +++ time.c (revision 47179) @@ -1323,9 +1323,13 @@ gmtimew(wideval_t timew, struct vtm *res https://github.com/ruby/ruby/blob/trunk/time.c#L1323 static struct tm *localtime_with_gmtoff_zone(const time_t *t, struct tm *result, long *gmtoff, const char **zone); /* - * This table finds the last month which starts at the same day of a week. + * The idea is borrowed from Perl: + * http://web.archive.org/web/20080211114141/http://use.perl.org/articles/08/02/07/197204.shtml * - * It can be generated by the following program: + * compat_common_month_table is generated by the following program. + * This table finds the last month which starts at the same day of a week. + * The year 2037 is not used because: + * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522949 * * #!/usr/bin/ruby * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/