Methods for parsing and extracting date/time information.
Returns the current unix timestamp in milliseconds.
- Example:
let ts = DateTime.now();
Returns a human-readable date string.
- Example:
DateTime.format(DateTime.now());
- Example:
DateTime.getYear(DateTime.now()); // 2026
- Example:
DateTime.getMonth(DateTime.now()); // 2
- Example:
DateTime.getDay(DateTime.now()); // 27