How To Call It#
This is an object method: call it with a colon on a DateTime object from DateTime.now() or DateTime(...) (now:<method>(...)). DateTime.format(dateTime, pattern) on the DateTime table is a separate function that takes the value to work on as an argument.
When To Use It#
For time flow, combine DateTime, TimeSpan, and Stopwatch with logging, timeout control, and performance measurement.
Parameters and Return#
Required: pattern. Returns a string.
Best Combined With#
A strong combination is to measure with Stopwatch, log with DateTime, and compare durations with TimeSpan.