Home
last modified time | relevance | path

Searched refs:timeish (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc/src/ruby/lib/grpc/core/
Dtime_consts.rb36 def from_relative_time(timeish) argument
37 if timeish.is_a? TimeSpec
38 timeish
39 elsif timeish.nil?
41 elsif !timeish.is_a? Numeric
43 "Cannot make an absolute deadline from #{timeish.inspect}")
44 elsif timeish < 0
46 elsif timeish.zero?
49 Time.now + timeish