# File lib/faker/time.rb, line 14 def between(from, to, period = :all, format = nil) time = period == :between ? rand(from..to) : date_with_random_time(super(from, to), period) time_with_format(time, format) end