PageSourceSearch

https://fast-check.dev/assets/js/6dbff106.f70a160f.js

js fast-check.dev collected 2026-10-02 04:22:53 UTC 3,661 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["31001"],{48205(e,t,n){n.r(t),n.d(t,{metadata:()=>r,default:()=>h,frontMatter:()=>i,contentTitle:()=>c,toc:()=>o,assets:()=>d});var r=JSON.parse('{"id":"api/functions/date","title":"Function: date()","description":"date(constraints?): Arbitrary\\\\","source":"@site/docs/api/functions/date.md","sourceDirName":"api/functions","slug":"/api/functions/date","permalink":"/docs/api/functions/date","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedBy":null,"lastUpdatedAt":null,"frontMatter":{"mdx":{"format":"md"}},"sidebar":"tutorialSidebar","previous":{"title":"Function: createDepthIdentifier()","permalink":"/docs/api/functions/createDepthIdentifier"},"next":{"title":"Function: defaultReportMessage()","permalink":"/docs/api/functions/defaultReportMessage"}}'),s=n(61058),a=n(24801);let i={mdx:{format:"md"}},c="Function: date()",d={},o=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Remarks",id:"remarks",level:2}];function l(e){let t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"function-date",children:"Function: date()"})}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"date"}),"(",(0,s.jsx)(t.code,{children:"constraints?"}),"): ",(0,s.jsx)(t.a,{href:"/docs/api/classes/Arbitrary",children:(0,s.jsx)(t.code,{children:"Arbitrary"})}),"<",(0,s.jsx)(t.code,{children:"Date"}),">"]}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Defined in: ",(0,s.jsx)(t.a,{href:"https://github.com/dubzzz/fast-check/blob/014cc87e29e807fd7028e4cc05d8a6cd12da172b/packages/fast-check/src/arbitrary/date.ts#L47",children:"packages/fast-check/src/arbitrary/date.ts:47"})]}),"\n",(0,s.jsx)(t.p,{children:"For date between constraints.min or new Date(-8640000000000000) (included) and constraints.max or new Date(8640000000000000) (included)"}),"\n",(0,s.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Parameter"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"constraints"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.a,{href:"/docs/api/interfaces/DateConstraints",children:(0,s.jsx)(t.code,{children:"DateConstraints"})})}),(0,s.jsx)(t.td,{children:"Constraints to apply when building instances"})]})})]}),"\n",(0,s.jsx)(t.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"/docs/api/classes/Arbitrary",children:(0,s.jsx)(t.code,{children:"Arbitrary"})}),"<",(0,s.jsx)(t.code,{children:"Date"}),">"]}),"\n",(0,s.jsx)(t.h2,{id:"remarks",children:"Remarks"}),"\n",(0,s.jsx)(t.p,{children:"Since 1.17.0"})]})}function h(e={}){let{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},24801(e,t,n){n.d(t,{R:()=>i,x:()=>c});var r=n(13706);let s={},a=r.createContext(s);function i(e){let t=r.useContext(a);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.