Method: Time#hash

Defined in:
time.c

#hashInteger

Returns the integer hash code for self.

Related: Object#hash.

Returns:



4046
4047
4048
4049
4050
4051
4052
4053
# File 'time.c', line 4046

static VALUE
time_hash(VALUE time)
{
    struct time_object *tobj;

    GetTimeval(time, tobj);
    return rb_hash(w2v(tobj->timew));
}