DXN date (~D[YYYY-MM-DD]) โ a bare calendar date, no time-of-day
or timezone component. Not backed by native JS Date internally:
Date conflates date+time+instant into one epoch-ms value and can't
represent a bare calendar date distinctly from midnight-somewhere โ
exactly the ambiguity DXN.md ยง1.3 avoids by keeping date/time/
datetime as separate types. toDate()/fromDate() below offer a
documented, UTC-midnight convention as a convenience, not as this
class's actual storage.
DXN
date(~D[YYYY-MM-DD]) โ a bare calendar date, no time-of-day or timezone component. Not backed by native JSDateinternally:Dateconflates date+time+instant into one epoch-ms value and can't represent a bare calendar date distinctly from midnight-somewhere โ exactly the ambiguityDXN.mdยง1.3 avoids by keepingdate/time/datetimeas separate types.toDate()/fromDate()below offer a documented, UTC-midnight convention as a convenience, not as this class's actual storage.