LocalDateTime.now constructor
LocalDateTime.now()
Constructs a LocalDateTime with the current date and time in the
current time zone.
The precision depends on Dart's DateTime object which varies by Dart version and platform.
| Dart Version | Platform | Precision |
|---|---|---|
| ≥ 3.5.0 | All | Microsecond |
| < 3.5.0 | Native | Microsecond |
| < 3.5.0 | Web | Millisecond |
Implementation
LocalDateTime.now() : this.fromDateTime(clock.now());