Ruby | Time hash function
Time#hash() : hash() is a Time class method which returns the hash code for this Time object. Syntax: Time.hash() Parameter: Time values Return: the hash code for this Time object. Example #1 : # Ruby code for Time.hash() method # declaring time a = Time.new(2019) # declaring time b = Time.new(2019,