W3cubDocs

/Dart 2

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();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/DateTime/DateTime.now.html