Skip to content

Commit

Permalink
Added example for Faker::Date.birthday (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpieper authored and stympy committed Mar 18, 2017
1 parent 2ebda78 commit ef3a762
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/date.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ Faker::Date.forward(23) # => "Fri, 03 Oct 2014"

# Random date in the past (up to maximum of N days)
Faker::Date.backward(14) #=> "Fri, 19 Sep 2014"

# Random birthday date (maximum age between 18 and 65)
Faker::Date.birthday(18, 65) #=> "Mar, 28 Mar 1986"
```

0 comments on commit ef3a762

Please sign in to comment.