Method: Faker::Time.forward
- Defined in:
- lib/faker/default/time.rb
.forward(days: 365, period: :all, format: nil) ⇒ Time
Produce a random time in the future (up to N days).
95 96 97 |
# File 'lib/faker/default/time.rb', line 95 def forward(days: 365, period: :all, format: nil) time_with_format(date_with_random_time(Faker::Date.forward(days: days), period), format) end |