operator - method

  1. @useResult
LocalDateTime operator -(
  1. Period period
)

Returns a copy of this with the period subtracted.

LocalDateTime(2023, 4, 10, 8) - Period(days: 1); // 2023-03-31 08:00

Implementation

@useResult LocalDateTime operator - (Period period) => LocalDateTime._(_native - period);