toDateTimeLocal method

DateTime toDateTimeLocal()

Constructs a DateTime from this ZonedDateTime which has a DateTime.isUtc set to false and represents the same local time as this value rather than the same instant in time.

If the date and time is not on a millisecond (Web) or microsecond (VM) boundary (the unit of granularity of DateTime) the value will be truncated towards the start of time.

A DateTime representation of this value with an 'unspecified' kind, with the same local date and time as this value.

Implementation

DateTime toDateTimeLocal() => localDateTime.toDateTimeLocal();