class Faker::Date

Defined in:

faker/date.cr

Class Method Summary

Class Method Detail

def self.backward(days : Int32 = 365) : Time #

[View source]
def self.between(from : Time | String, to : Time | String) : Time #

[View source]
def self.between_except(from : Time | String, to : Time | String, excepted : Time | String) #

[View source]
def self.birthday(min_age : Int32 = 18, max_age : Int32 = 65) : Time #

[View source]
def self.forward(days : Int32 = 365) : Time #

[View source]
def self.in_date_period(month : Int32 | Nil = nil, year : Int32 = Time.utc.year) : Time #

[View source]