localDateTime property

LocalDateTime localDateTime

Gets the time zone associated with this value. Gets the local date and time represented by this zoned date and time.

The returned LocalDateTime will have the same calendar system and return the same values for each of the calendar properties (Year, MonthOfYear and so on), but will not be associated with any particular time zone.

Implementation

// DateTimeZone get Zone => zone ?? DateTimeZone.utc;

/// Gets the local date and time represented by this zoned date and time.
///
/// The returned [LocalDateTime] will have the same calendar system and return the same values for
/// each of the calendar properties (Year, MonthOfYear and so on), but will not be associated with any
/// particular time zone.
LocalDateTime get localDateTime => _offsetDateTime.localDateTime;