mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
3bc16f62c1
commit
1dd6a6dfa4
2 changed files with 4 additions and 7 deletions
|
@ -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>
|
Tue Apr 21 23:52:45 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* time.c: remove time_t restriction from Time class.
|
* 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
|
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
|
static VALUE
|
||||||
timegmv_noleapsecond(struct vtm *vtm)
|
timegmv_noleapsecond(struct vtm *vtm)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue