APIdock / Ruby
/
method

day

ruby latest stable - Class: Time
day()
public

Returns the day of the month (1..n) for time.

t = Time .now  #=> 2007年11月19日 08:27:03 -0600
t.day  #=> 19
t.mday  #=> 19
static VALUE
time_mday(VALUE time)
{
 struct time_object *tobj;
 GetTimeval(time, tobj);
 MAKE_TM(time, tobj);
 return INT2FIX(tobj->vtm.mday);
}

AltStyle によって変換されたページ (->オリジナル) /