minus static method
Subtracts the specified period from the date and time. Friendly alternative to operator-()
.
localDateTime
: Initial local date and timeperiod
: Period to subtract
Returns: The resulting local date and time
Implementation
static LocalDateTime minus(LocalDateTime localDateTime, Period period) => localDateTime.subtract(period);