зеркало из https://github.com/github/ruby.git
* time.c (leap_year_v_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3bc16f62c1
Коммит
1dd6a6dfa4
|
@ -1,3 +1,7 @@
|
|||
Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* time.c (leap_year_v_p): removed.
|
||||
|
||||
Tue Apr 21 23:52:45 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* time.c: remove time_t restriction from Time class.
|
||||
|
|
7
time.c
7
time.c
|
@ -224,13 +224,6 @@ static const int leap_year_days_in_month[] = {
|
|||
31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
|
||||
};
|
||||
|
||||
static int
|
||||
leap_year_v_p(VALUE year)
|
||||
{
|
||||
int y = NUM2INT(mod(year, INT2FIX(400)));
|
||||
return ((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
timegmv_noleapsecond(struct vtm *vtm)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче