DateTime.now constructor

DateTime.now()

Constructs a DateTime instance with current date and time in the local time zone.

var thisInstant = new DateTime.now();

Implementation

DateTime.now() : this._now();