DateTime module provides a type-safe, immutable way to work with dates and times. It supports both UTC and zoned date-times, with comprehensive time zone handling.
Overview
ADateTime represents a point in time. It can be:
- UTC - A simple timestamp without time zone information
- Zoned - A timestamp with an associated time zone
Creating DateTime
From Current Time
Get the current date and time using the Clock service.From Different Inputs
Create DateTime from various input types.Safe Construction
Use safe constructors that returnundefined on invalid input.
