Datetime
This is a datetime module, it contains future, past, and near
Future
dunna.datetime.future()
returns a random future date
Parameter | Type | Description | Default |
---|---|---|---|
minFutureYears | string | Specify the maximum number of years in the future | 1 |
maxFutureYears | string | Specify the minimum number of years in the future | 10 |
Past
dunna.datetime.past()
returns a random past date
Parameter | Type | Description | Default |
---|---|---|---|
minPastYears | string | Specify the maximum number of years in the past | 1 |
maxPastYears | string | Specify the minimum number of years in the past | 10 |
Near
dunna.datetime.near()
returns a random date near the current date
Parameter | Type | Description | Default |
---|---|---|---|
minFutureDays | string | Specify the maximum number of days in the future | 1 |
maxFutureDays | string | Specify the minimum number of days in the future | 10 |
Between
dunna.datetime.between()
returns a random date between the two dates
Parameter | Type | Description | Default |
---|---|---|---|
min | string | Specify the minimum date | - |
max | string | Specify the maximum date | - |