Random Future Date Generator with Delorean

  • Share this:

Code introduction


This function uses the Delorean library to generate a random future date after the current date, with a default of 10 days in the future.


Technology Stack : Delorean

Code Type : Python Function

Code Difficulty : Intermediate


                
                    
def random_future_date(days=10):
    from delorean import Delorean
    future_date = Delorean().add(days=days)
    return future_date.date()

# JSON representation of the code information                
              
Tags: