DateTime.now()
Create a DateTime for the current date and time.
Signature
DateTime.now(): DateTime
Returns
DateTime - The current local date and time.
Description
Equivalent to calling DateTime() with no arguments. The returned object is independent, so
changing it does not affect later calls.
Example
local now = DateTime.now()
toast(now:format("yyyy-MM-dd HH:mm:ss"))
Compatible Version: 1.0.0.31 and up