Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The toPlainTime()
method of Temporal.PlainDateTime
instances returns a new Temporal.PlainTime
object representing the time part (hour, minute, second, and subsecond components) of this date-time.