On this page
DateTime constructor
Constructs a DateTime instance specified in the local time zone.
For example, to create a DateTime
object representing the 7th of September 2017, 5:30pm
final dentistAppointment = DateTime(2017, 9, 7, 17, 30);
Implementation
DateTime(int year,
[int month = 1,
int day = 1,
int hour = 0,
int minute = 0,
int second = 0,
int millisecond = 0,
int microsecond = 0])
: this._internal(year, month, day, hour, minute, second, millisecond,
microsecond, false);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/DateTime/DateTime.html