No longer subsec and isdst members
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0bed6345ce
commit
6fdbf5a804
6
time.c
6
time.c
@ -5090,12 +5090,6 @@ tm_initialize(int argc, VALUE *argv, VALUE tm)
|
|||||||
RSTRUCT_SET(tm, i++, INT2FIX(vtm.mday));
|
RSTRUCT_SET(tm, i++, INT2FIX(vtm.mday));
|
||||||
RSTRUCT_SET(tm, i++, INT2FIX(vtm.mon));
|
RSTRUCT_SET(tm, i++, INT2FIX(vtm.mon));
|
||||||
RSTRUCT_SET(tm, i++, vtm.year);
|
RSTRUCT_SET(tm, i++, vtm.year);
|
||||||
RSTRUCT_SET(tm, i++, INT2FIX(0));
|
|
||||||
switch (vtm.isdst) {
|
|
||||||
case 0: RSTRUCT_SET(tm, i++, Qfalse); break;
|
|
||||||
case 1: RSTRUCT_SET(tm, i++, Qtrue); break;
|
|
||||||
default: RSTRUCT_SET(tm, i++, Qnil); break;
|
|
||||||
}
|
|
||||||
RSTRUCT_SET(tm, i++, w2v(rb_time_unmagnify(t)));
|
RSTRUCT_SET(tm, i++, w2v(rb_time_unmagnify(t)));
|
||||||
return tm;
|
return tm;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user