Feature/future past datetime methods#1693
Open
rodrigobnogueira wants to merge 1 commit intolk-geimfari:masterfrom
Open
Feature/future past datetime methods#1693rodrigobnogueira wants to merge 1 commit intolk-geimfari:masterfrom
rodrigobnogueira wants to merge 1 commit intolk-geimfari:masterfrom
Conversation
f755a0f to
c93867f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1693 +/- ##
==========================================
+ Coverage 98.91% 98.92% +0.01%
==========================================
Files 50 50
Lines 2114 2144 +30
==========================================
+ Hits 2091 2121 +30
Misses 23 23 🚀 New features to boost your workflow:
|
c93867f to
d25ca68
Compare
lk-geimfari
requested changes
Jan 13, 2026
d25ca68 to
b5efd09
Compare
Add methods to generate dates and datetimes relative to the current time: - future_date(days=30): Random date between tomorrow and N days ahead - future_datetime(days=30, timezone=None): Random datetime from now+1s to N days ahead - past_date(days=30): Random date between N days ago and yesterday - past_datetime(days=30, timezone=None): Random datetime from N days ago to now-1s Closes lk-geimfari#775
b5efd09 to
73d1613
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have made things!
Checklist
Related issues
Description
Add methods to generate dates and datetimes relative to the current time for the
Datetimeprovider:future_date(days=30)future_datetime(days=30, timezone=None)past_date(days=30)past_datetime(days=30, timezone=None)Usage Examples
Tests
All 8765 tests pass, including:
daysvalues and timezones)