Datetime
This is a datetime module, it contains future, past, and near
Future
Section titled “Future”dunna.datetime.future() returns a random future date
dunna.datetime.future();| 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 |
dunna.datetime.past() returns a random past date
dunna.datetime.past();| 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 |
dunna.datetime.near() returns a random date near the current date
dunna.datetime.near();| 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
Section titled “Between”dunna.datetime.between() returns a random date between the two dates
dunna.datetime.between({ min: new Date(), max: new Date(),});| Parameter | Type | Description | Default |
|---|---|---|---|
| min | string | Specify the minimum date | - |
| max | string | Specify the maximum date | - |
Birthdate
Section titled “Birthdate”dunna.datetime.birthdate() returns a random birthdate
dunna.datetime.birthdate();