faker.time
module to simplify time (not datetime) usecases
#3107
Labels
c: feature
Request for new feature
s: pending triage
Pending Triage
s: waiting for user interest
Waiting for more users interested in this feature
Clear and concise description of the problem
Generating fakes specifically for times, not necessarily dates. These will only produce times, and not consider dates.
The date fucntions do perform this utility to some degree but require additional work to achieve which could be baked into a time module directly.
Suggested solution
in module
faker.date
or in a new modulefaker.time
it would have fucntions for:faker.time.between
faker.time.after
faker.time.range
These should accept a format argument that allows the time output to be formatted as 24/12h time (or others)
Alternative
Users build their own time fucntions that work on top of
faker.date
Additional context
Naive examples from my own use:
The text was updated successfully, but these errors were encountered: