vadymmarkov / Fakery

:alien: Swift fake data generator
https://vadymmarkov.github.io
Other
1.78k stars 183 forks source link

Random Dates #63

Open adeline-t opened 7 years ago

adeline-t commented 7 years ago

Would it be possible to add random date ? Some birthday would be nice. Thanks

vadymmarkov commented 7 years ago

@adeline-t I'll add it to a list of features in future versions 👍

matthew-reilly commented 7 years ago

@vadymmarkov Is there a list publicly available? I'd love to help out. Great library. :shipit:

noppefoxwolf commented 6 years ago

I want this too. Faker has date factory method. http://www.rubydoc.info/github/stympy/faker/Faker/Date

let faker = Faker(locale: "en")
faker.date.backward(days: Int) -> Date
faker.date.between(from: Date, to: Date) -> Date
faker.date.birthday(minAge: Int, maxAge: Int) -> Date
faker.date.forward(days: Int) -> Date

If develop this functions, I think useful this interface like this.

vadymmarkov commented 6 years ago

@matthew-reilly @noppefoxwolf That would be a great feature! Can't promise now when I will have time to implement it, but feel free to contribute if you're up for it.