Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The since()
method of Temporal.PlainYearMonth
instances returns a new Temporal.Duration
object representing the duration from another year-month (in a form convertible by Temporal.PlainYearMonth.from()
) to this year-month. The duration is positive if the other month is before this month, and negative if after.
This method does this - other
. To do other - this
, use the until()
method.