File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -9032,6 +9032,12 @@ mk_ary_of_str(long len, const char *a[])
90329032 return o ;
90339033}
90349034
9035+ static VALUE
9036+ d_lite_zero (VALUE x )
9037+ {
9038+ return INT2FIX (0 );
9039+ }
9040+
90359041void
90369042Init_date_core (void )
90379043{
@@ -9374,6 +9380,12 @@ Init_date_core(void)
93749380 rb_define_method (cDate , "nth_kday?" , d_lite_nth_kday_p , 2 );
93759381#endif
93769382
9383+ rb_define_private_method (cDate , "hour" , d_lite_zero , 0 );
9384+ rb_define_private_method (cDate , "min" , d_lite_zero , 0 );
9385+ rb_define_private_method (cDate , "minute" , d_lite_zero , 0 );
9386+ rb_define_private_method (cDate , "sec" , d_lite_zero , 0 );
9387+ rb_define_private_method (cDate , "second" , d_lite_zero , 0 );
9388+
93779389 rb_define_method (cDate , "julian?" , d_lite_julian_p , 0 );
93789390 rb_define_method (cDate , "gregorian?" , d_lite_gregorian_p , 0 );
93799391 rb_define_method (cDate , "leap?" , d_lite_leap_p , 0 );
You can’t perform that action at this time.
0 commit comments