Period.get() only works with YEARS, MONTHS, or DAYS.

See: https://errorprone.info/bugpattern/PeriodGetTemporalUnit