LocalDateTime.now constructor
LocalDateTime.now()
Produces a LocalDateTime based on your Clock.current and your DateTimeZone.local.
- calendar: The calendar system to convert into, defaults to ISO calendar
Returns: A new LocalDateTime with the same values as the local clock.
Implementation
factory LocalDateTime.now() => Instant.now().inLocalZone().localDateTime;