operator unary- method

Period operator unary-()

Negates all elements in the period.

Implementation

Period operator -() {
  return Period(years: -years, months: -months, days: -days);
}