Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Random.date (+options) #1

Open
11 tasks
DanBurkhardt opened this issue Jul 17, 2020 · 0 comments
Open
11 tasks

Add support for Random.date (+options) #1

DanBurkhardt opened this issue Jul 17, 2020 · 0 comments
Assignees

Comments

@DanBurkhardt
Copy link
Contributor

DanBurkhardt commented Jul 17, 2020

Add support for:

  • RandomDate object // as a return type with object methods for conversions
  • Random.date // any time in history, past or future randomly generated
  • Random.date.in.the(.future) // any time in the future unlimited
  • Random.date.in.the(.past) // any time in the past unlimited
  • DateRange() configuration object that accepts Date objects
  • DateRange() support for integer literals as seconds, hours, minutes, days, weeks, months & years
  • Random.date.in.the(.future, withinRange: DateRange)
  • Random.date.in.the(.past, withinRange: DateRange)
  • RandomDate().epoch computed variable // interval since 1970
  • RandomDate().nsDate computed var // also add support for dateformatter
  • RandomDate().unixTimestamp computed var // for unix timestamps, though we'll need some additional config options for output formatting on this one
@DanBurkhardt DanBurkhardt self-assigned this Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant