class

Faker::Date

Inherits Faker::Base < Reference < Object

Class methods

backward(days : Int32 = 365) : Time
Source
between(from : Time | String, to : Time | String) : Time
Source
between_except(from : Time | String, to : Time | String, excepted : Time | String)
Source
birthday(min_age : Int32 = 18, max_age : Int32 = 65) : Time
Source
forward(days : Int32 = 365) : Time
Source
in_date_period(month : Int32 | Nil = nil, year : Int32 = Time.utc.year) : Time
Source