Creates a validated CreatedAt timestamp.
Optional
Optional Date. If not provided, uses current time.
A branded CreatedAt value
When the value is not a valid Date
const now = makeCreatedAt(); // Current timeconst specific = makeCreatedAt(new Date("2024-01-01")); Copy
const now = makeCreatedAt(); // Current timeconst specific = makeCreatedAt(new Date("2024-01-01"));
Creates a validated CreatedAt timestamp.