Module

Faker.Date

Package
purescript-faker-ffi
Repository
philippedev101/purescript-faker-ffi

#anytime Source

anytime :: Gen String

Generate a random date at any time.

#past Source

past :: Gen String

Generate a random date in the past (default: within 1 year).

#pastOpts Source

pastOpts :: PastOpts -> Gen String

Generate a random date in the past within specified years.

#PastOpts Source

type PastOpts = { years :: Int }

#future Source

future :: Gen String

Generate a random date in the future (default: within 1 year).

#futureOpts Source

futureOpts :: FutureOpts -> Gen String

Generate a random date in the future within specified years.

#FutureOpts Source

type FutureOpts = { years :: Int }

#between Source

between :: BetweenOpts -> Gen String

Generate a random date between two dates (ISO string format).

#BetweenOpts Source

type BetweenOpts = { from :: String, to :: String }

#betweens Source

betweens :: BetweensOpts -> Gen (Array String)

Generate multiple random dates between two dates (ISO string format).

#BetweensOpts Source

type BetweensOpts = { count :: Int, from :: String, to :: String }

#recent Source

recent :: Gen String

Generate a random recent date (default: within 1 day).

#recentOpts Source

recentOpts :: RecentOpts -> Gen String

Generate a random recent date within specified days.

#RecentOpts Source

type RecentOpts = { days :: Int }

#soon Source

soon :: Gen String

Generate a random date in the near future (default: within 1 day).

#soonOpts Source

soonOpts :: SoonOpts -> Gen String

Generate a random date in the near future within specified days.

#SoonOpts Source

type SoonOpts = { days :: Int }

#birthdate Source

birthdate :: Gen String

Generate a random birthdate with default options.

#birthdateByAge Source

birthdateByAge :: AgeRangeOpts -> Gen String

Generate a random birthdate within an age range.

#AgeRangeOpts Source

type AgeRangeOpts = { max :: Int, min :: Int }

#birthdateByYear Source

birthdateByYear :: YearRangeOpts -> Gen String

Generate a random birthdate within a year range.

#YearRangeOpts Source

type YearRangeOpts = { max :: Int, min :: Int }

#month Source

month :: Gen String

Generate a random month name.

#monthAbbreviated Source

monthAbbreviated :: Gen String

Generate an abbreviated month name (e.g. "Jan").

#weekday Source

weekday :: Gen String

Generate a random weekday name.

#weekdayAbbreviated Source

weekdayAbbreviated :: Gen String

Generate an abbreviated weekday name (e.g. "Mon").

#timeZone Source

timeZone :: Gen String

Generate a random IANA time zone string.