1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2018-10-22 14:02:59 +00:00
parent 0bed6345ce
commit 6fdbf5a804

6
time.c
View file

@ -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.mon));
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)));
return tm;
#endif