Demonstrate how Temporal.PlainDate and Temporal.PlainTime prevent "timezone drift"
bugs
by recording chronological data that remains identical regardless of the viewer's location.
Date is a timestamp, not a calendar date. Saving "1990-01-01" as a
Date forces the app to pick an instant (midnight UTC here), so viewers west of UTC (e.g., New York)
read it back as Dec 31, 1989. Temporal.PlainDate has no concept of time or zone,
staying exact.
Date is pinned to one instant, so a traveller
who set "9:00 AM" at home sees a different hour abroad. Temporal.PlainTime stays 9:00 AM in
whatever time zone the user happens to be in.
overflow: 'constrain')
2024-01-31 + 1 month clamps to month-end